-
Notifications
You must be signed in to change notification settings - Fork 236
/
build.gradle
58 lines (51 loc) · 1.07 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
dependencies {
compile project(':concourse')
compile project(':concourse-shell')
compile 'com.google.guava:guava:15.0'
compile 'com.beust:jcommander:1.32'
compile 'com.github.stephenc.high-scale-lib:high-scale-lib:1.1.4'
testCompile 'com.carrotsearch:junit-benchmarks:0.7.2'
}
test {
systemProperty 'test', 'true'
}
task context() {
if(!System.getProperty("jenkins").equals("true")) {
exec {
commandLine 'bash', 'context.sh'
}
outputs.file "context.txt"
}
}
def service = "concourse-server"
task distZip(type: Zip, dependsOn: jar) {
into(service + '/lib') {
from configurations.runtime
from jar.outputs
from 'wrapper_lib'
}
into(service + '/log'){
from 'log/console.log'
}
into(service + '/bin') {
from 'scripts'
}
into(service + '/conf') {
from 'conf'
}
into(service + "/licenses"){
from '../licenses'
}
into(service) {
from '../LICENSE'
}
into(service) {
from 'wrapper'
}
into(service) {
from context.outputs
}
}
task dist(type: Exec, dependsOn: distZip) {
commandLine 'bash', '.dist.sh', version
}