-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
77 lines (63 loc) · 1.9 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "commons-io:commons-io:2.4"
}
}
import java.net.URL;
import java.net.URLConnection;
import org.apache.commons.io.IOUtils;
version = '1.0'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'application'
// TWL -- not available via Maven/Ivy. Download it manually and depend
// on it via a flatfile repository. TODO: plain HTTP-download
// resolvers? Can the ivy resolver be used for this?
def dlDir = file('tmp')
def twlLibName = 'TWL'
def twlUrl = 'http://twl.l33tlabs.org/dist/TWL.jar'
def twlLibFile = new File(dlDir, "${twlLibName}.jar")
dlDir.mkdirs()
if (!twlLibFile.exists()) {
println "need to download $twlUrl to $twlLibFile ..."
def inStr = new URL(twlUrl).openConnection().getInputStream()
try {
IOUtils.copy(inStr, new FileOutputStream(twlLibFile))
} finally {
inStr.close()
}
}
repositories {
maven {
url "http://www.dcm4che.org/maven2"
}
maven {
url "https://swt-repo.googlecode.com/svn/repo"
}
maven {
url "http://maven.springframework.org/release"
}
flatDir {
dirs dlDir
}
mavenCentral()
}
dependencies {
compile "log4j:log4j:1.2.13"
compile 'org.slf4j:slf4j-api:1.5.0'
compile 'org.slf4j:slf4j-log4j12:1.6.0'
compile "commons-lang:commons-lang:2.5"
compile "dcm4che:dcm4che-core:2.0.24"
compile "dcm4che:dcm4che-imageio:2.0.24"
compile "org.lwjgl.lwjgl:lwjgl:2.8.4"
compile ":TWL:1.2.3"
compile "xpp3:xpp3:1.1.4c"
testCompile 'junit:junit:4.11'
}
mainClassName = "de.olafklischat.volkit.App"
// TODO need to manually adapt the path to the LWJGL native components for now. Need to fetch these from
// the maven repositories as well
applicationDefaultJvmArgs = ['-Xmx1024m', '-Xms256m', '-Djava.library.path=/home/olaf/dentapp/twl/elibs/native/linux']