-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
70 lines (56 loc) · 1.32 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
apply plugin: 'groovy'
sourceSets {
jobs {
groovy {
srcDirs 'jobs'
}
}
}
configurations {
jenkins
compile.extendsFrom(jenkins)
lib
compile.extendsFrom(lib)
}
repositories {
mavenLocal()
maven { url "https://jitpack.io" }
maven { url 'http://repo.jenkins-ci.org/releases/' }
jcenter()
mavenCentral()
}
dependencies {
//TODO use a proper version once published
lib 'com.github.things-and-stuff:jenkins-pipeline-dsl:50951d239'
jenkins "org.jenkins-ci.main:jenkins-core:${project.ext.jenkinsVersion}"
compile 'org.codehaus.groovy:groovy-all:2.4.4'
compile 'com.google.guava:guava:14.0'
compile "org.jenkins-ci.plugins:job-dsl:${project.ext.jobDslVersion}@jar"
compile "org.jenkins-ci.plugins:job-dsl-core:${project.ext.jobDslVersion}"
testCompile('org.spockframework:spock-core:1.0-groovy-2.4') {
exclude module: 'groovy-all'
}
testCompile 'xmlunit:xmlunit:1.6'
}
test {
testLogging {
exceptionFormat = 'full'
}
}
task cleanLibs(type: Delete) {
delete 'lib'
}
tasks.clean.dependsOn 'cleanLibs'
task libs(type: Copy) {
into 'lib'
from configurations.lib
}
apply plugin: 'idea'
idea {
module {
excludeDirs += file('lib')
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.7'
}