-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
49 lines (39 loc) · 1.1 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
plugins {
id 'java'
id 'application'
}
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile group: 'org.jboss.resteasy', name: 'resteasy-client', version: '3.0.8.Final'
compile group: 'org.jboss.resteasy', name: 'resteasy-jettison-provider', version: '2.3.6.Final'
compile group: 'com.itextpdf', name: 'itextpdf', version: '5.5.13.1'
testCompile group: 'junit', name: 'junit', version: '4.+'
}
mainClassName = 'ch.romix.ivk.resultarchiver.Main'
task configLocal {
doFirst {
println "running against localhost"
run { systemProperty "BASE_PATH", "http://localhost/Turnverband/ws/" }
}
}
task runLocal {
group "application"
dependsOn(configLocal)
dependsOn(run)
}
run.mustRunAfter(configLocal)
task configTurnverband {
doFirst {
println "running against https://korbball.turnverband.ch/ws"
run { systemProperty "BASE_PATH", "https://korbball.turnverband.ch/ws/" }
}
}
task runTurnverband {
group "application"
dependsOn(configTurnverband)
dependsOn(run)
}
run.mustRunAfter(configTurnverband)