Sfoglia il codice sorgente

Enables on the fly downloads for required jars via gradle

Andreas T. Meyer-Berg 6 anni fa
parent
commit
e4d0a1ccbf
2 ha cambiato i file con 17 aggiunte e 2 eliminazioni
  1. 13 2
      build.gradle
  2. 4 0
      settings.gradle

+ 13 - 2
build.gradle

@@ -22,11 +22,12 @@ plugins {
 
 // Apply the java plugin to add support for Java
 apply plugin: 'java'
+apply plugin: 'eclipse'
 apply plugin: 'application'
 apply plugin: 'edu.sc.seis.launch4j'
 
 
-version = '1.0'
+version = '2.1'
 
 mainClassName = 'ui.view.Main'
 def projectName = 'holeg'
@@ -76,8 +77,18 @@ repositories {
 }
 
 dependencies {
-    compile fileTree(dir: 'jars', include: ['*.jar'])
+	// download jars on the fly
+	// https://mvnrepository.com/artifact/org.apache.commons/commons-compress
+	compile group: 'org.apache.commons', name: 'commons-compress', version: '1.13'
+    // https://mvnrepository.com/artifact/com.google.code.gson/gson
+    compile group: 'com.google.code.gson', name: 'gson', version: '2.8.2'
+	// https://mvnrepository.com/artifact/junit/junit
+	testCompile group: 'junit', name: 'junit', version: '4.12'
+	compile group: 'junit', name: 'junit', version: '4.12'
+
+	// use /jar Folder (old system)
     compile fileTree(dir: 'jars/commons-compress-1.13', include: ['*.jar'])
+	compile fileTree(dir: 'jars', include: ['*.jar'])
     testCompile group: 'junit', name: 'junit', version: '4.+'
 }
 

+ 4 - 0
settings.gradle

@@ -17,3 +17,7 @@ include 'services:webservice'
 */
 
 rootProject.name = 'praktikum-holons'
+
+includeFlat 'commons-compress'
+includeFlat 'gson'
+includeFlat 'junit'