-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
62 lines (48 loc) · 1.41 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
group 'com.test'
version '20170720'
apply plugin: 'java'
sourceCompatibility = 1.8
targetCompatibility =1.8
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile group: 'org.fitnesse', name: 'fitnesse', version: '20180127'
// compile ("org.apache.velocity:velocity:1.7") {
// exclude group:"commons-collections", module: "commons-collections"
// exclude group:"commons-lang", module: "commons-lang"
// }
compile group: 'org.json', name: 'json', version: '20180130'
// compile group: 'com.google.code.gson', name: 'gson', version: '2.8.5'
compile group: "com.cronutils",name:"cron-utils",version:"7.0.5"
// compile fileTree(dir: 'libs', include: '*.jar')
}
task copyJarToParent(type: Copy) {
from jar
into '../plugins'
}
task copyJarToPlugins(type: Copy) {
from jar
into 'plugins'
}
task copyJarToLocalOpt(type: Copy) {
from jar
into '/opt/plugins/'
}
task sshToRemote(type: Exec) {
executable 'sh'
args "-c", "./ci.sh"
}
task run(type: JavaExec) {
dependsOn classes
classpath = sourceSets.main.runtimeClasspath
main "fitnesseMain.FitNesseMain"
args "-p", "8001", "-e", "0"
}
task runJar(type: JavaExec) {
main "fitnesseMain.FitNesseMain"
classpath = files('libs/fitnesse-20180831-standalone.jar')
args "-p", "8001", "-e", "0"
}
runJar.dependsOn copyJarToPlugins