-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
120 lines (102 loc) · 5 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
group 'de.rwthaachen.ensemble'
version '0.01'
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.tkruse.gradle:gradle-groovysh-plugin:1.0.5'
}
}
apply {
plugin 'java'
plugin 'idea'
plugin 'groovy'
}
idea {
module {
downloadJavadoc = true
}
}
configurations {
shell
}
dependencies {
shell 'commons-cli:commons-cli:1.2'
shell('jline:jline:2.11') {
exclude(group: 'junit', module: 'junit')
}
shell 'org.codehaus.groovy:groovy-groovysh:2.2.+'
}
task(shell, dependsOn: 'classes') << {
def classpath = sourceSets.main.runtimeClasspath + configurations.shell
def command = [
'java',
'-cp', classpath.collect().join(':'),
'org.codehaus.groovy.tools.shell.Main',
'--color',
'--terminal', 'unix']
def proc = new ProcessBuilder(command)
.redirectOutput(ProcessBuilder.Redirect.INHERIT)
.redirectInput(ProcessBuilder.Redirect.INHERIT)
.redirectError(ProcessBuilder.Redirect.INHERIT)
.start()
proc.waitFor()
}
task(runThriftBackend, type: JavaExec) { //dependsOn: 'classes',
main = 'de.rwthaachen.ensemble.Main'
classpath = sourceSets.main.runtimeClasspath
systemProperties System.getProperties()
}
task(runRestBackend, type: JavaExec) { //dependsOn: 'classes',
main = 'de.rwthaachen.ensemble.Main'
classpath = sourceSets.main.runtimeClasspath
systemProperties System.getProperties()
args = ["REST"]
}
//defaultTasks 'runRestBackend'
repositories {
mavenCentral()
flatDir {
dirs 'lib'
}
}
dependencies {
compile group: 'org.glassfish.jersey.core', name: 'jersey-server', version: '2.7'
compile group: 'org.glassfish.jersey.containers', name: 'jersey-container-servlet-core', version: '2.7'
compile group: 'org.glassfish.jersey.containers', name: 'jersey-container-jetty-http', version: '2.7'
compile group: 'org.glassfish.jersey.media', name: 'jersey-media-moxy', version: '2.7'
compile group: 'javax.ws.rs', name: 'javax.ws.rs-api', version: '2.0.1'
compile group: 'org.eclipse.jetty.aggregate', name: 'jetty-all', version: '9.3.6.v20151106'
compile group: 'commons-beanutils', name: 'commons-beanutils', version: '1.9.2'
compile group: 'commons-collections', name: 'commons-collections', version: '3.2.2'
compile group: 'commons-lang', name: 'commons-lang', version: '2.6'
compile group: 'commons-logging', name: 'commons-logging', version: '1.2'
compile group: 'net.sf.ezmorph', name: 'ezmorph', version: '1.0.6'
compile group: 'net.sf.json-lib', name: 'json-lib', version: '2.4', classifier: 'jdk15'
compile group: 'org.apache.pig', name: 'pig', version: '0.10.0' //updatable
compile group: 'org.apache.uima', name: 'uimaj-core', version: '2.4.2' //updatable
compile group: 'org.apache.systemml', name: 'systemml', version: '0.9.0-incubating'
compile group: 'org.apache.thrift', name: 'libthrift', version: '0.9.3'
compile group: 'org.eclipse.persistence', name: 'javax.persistence', version: '2.1.1'
// TODO: Currently, both gson and minimal-json are used - this should be consolidated in the near future
// gson comes from YodaQA, minimal json was chosen for its minimalism
// Jackson is another promising candidate, but heavyweight
compile group: 'com.eclipsesource.minimal-json', name: 'minimal-json', version: '0.9.4'
compile group: 'com.google.code.gson', name: 'gson', version: '2.6.2'
compile group: 'org.codehaus.groovy', name: 'groovy-all', version: '2.4.6'
compile group: 'org.testng', name: 'testng', version: '6.9.10'
compile group: 'cc.mallet', name: 'mallet', version: '2.0.8'
def f = new File('lib/simmetrics_jar_v1_6_2_d07_02_07.jar')
if (!f.exists()) {
new URL('http://downloads.sourceforge.net/project/simmetrics/simmetrics_jar/simmetrics_v1_6_2/simmetrics_jar_v1_6_2_d07_02_07.jar?format=raw').withInputStream{ i -> f.withOutputStream{ it << i }}
}
compile name: 'simmetrics_jar_v1_6_2_d07_02_07'
// compile files('./lib/simmetrics_jar_v1_6_2_d07_02_07.jar')
// compile files('./lib/jaws-bin.jar')
f = new File('lib/jaws-bin.jar')
if (!f.exists()) {
new URL('http://lyle.smu.edu/%7Etspell/jaws/jaws-bin.jar?format=raw').withInputStream{ i -> f.withOutputStream{ it << i }}
}
compile name: 'jaws-bin'
}