-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
60 lines (49 loc) · 2.75 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
group 'de.rwthaachen.jobimservice'
version '0.01'
apply {
plugin 'java'
plugin 'idea'
}
idea {
module {
downloadJavadoc = true
}
}
repositories {
mavenCentral()
flatDir {
dirs 'lib'
}
}
task(runRestBackend, dependsOn: 'classes', type: JavaExec) {
main = 'de.rwthaachen.jobimservice.Main'
classpath = sourceSets.main.runtimeClasspath
}
defaultTasks 'runRestBackend'
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
def f = new File('lib/mysql-connector-java-5.1.23.jar')
if (!f.exists()) { //TODO Switching to https will result in corrupt file (but not in browser)
new URL('http://sourceforge.net/p/jobimtext/jobimtextgpl/code/HEAD/tree/trunk/org.jobimtext.gpl/lib/mysql-connector-java-5.1.23.jar?format=raw').withInputStream{ i -> f.withOutputStream{ it << i }}
}
compile name: 'mysql-connector-java-5.1.23'
f = new File('lib/org.jobimtext-0.1.3.jar')
if (!f.exists()) {
new URL('http://sourceforge.net/p/jobimtext/code/HEAD/tree/trunk/org.jobimtext.examples.api/lib/org.jobimtext-0.1.3.jar?format=raw').withInputStream{ i -> f.withOutputStream{ it << i }}
}
compile name: 'org.jobimtext-0.1.3'
testCompile group: 'junit', name: 'junit', version: '4.11'
}