-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
53 lines (42 loc) · 1.26 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
* user guide available at https://docs.gradle.org/2.6/userguide/tutorial_java_projects.html
* tutorial at https://spring.io/guides/gs/gradle/
*/
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'application'
sourceCompatibility = 1.8
targetCompatibility = 1.8
mainClassName = 'geoptimize.Program'
repositories {
jcenter()
maven { url 'http://www.dcm4che.org/maven2' }
mavenCentral()
}
dependencies {
compile 'org.slf4j:slf4j-api:1.7.12'
compile 'com.nativelibs4java:javacl:1.0.0-RC3'
//Need this for ImageIO to read GeoTIF
compile 'com.sun.media:jai_imageio:1.2-pre-dr-b04'
compile 'javax.vecmath:vecmath:1.5.2'
testCompile 'junit:junit:4.12'
// testCompile 'org.testng:testng:6.8.1'
}
test {
//testLogging.showStandardStreams = true
//afterTest { desc, result ->
// println "Executing test ${desc.name} [${desc.className}] with result: ${result.resultType}"
//}
testLogging {
events "passed", "skipped", "failed"
exceptionFormat "full"
}
}
jar {
from { //create a fat jar file (include all dependencies within the jar)
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
manifest { //must include jar entry point to be runnable
attributes 'Main-Class': 'geoptimize.Program'
}
}