-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathbuild.gradle
74 lines (59 loc) · 2.11 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
71
72
73
74
apply plugin: 'groovy'
sourceSets {
jobs {
groovy {
srcDirs 'jobs'
}
}
}
repositories {
mavenCentral()
jcenter()
maven { url 'https://repo.jenkins-ci.org/releases/' }
}
dependencies {
compile 'org.codehaus.groovy:groovy:2.1.3'
compile 'org.jenkins-ci.plugins:job-dsl-core:1.58'
compile 'org.jenkins-ci.plugins:job-dsl:1.58'
compile 'org.reflections:reflections:0.9.10'
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.24'
compile group: 'org.apache.commons', name: 'commons-io', version: '1.3.2'
compile group: 'javax.servlet', name: 'servlet-api', version: '2.5'
compile group: 'com.googlecode.java-diff-utils', name: 'diffutils', version: '1.2'
testCompile('org.spockframework:spock-core:0.7-groovy-2.0') {
exclude module: 'groovy-all'
}
// for the RestApiScriptRunner
compile('org.codehaus.groovy.modules.http-builder:http-builder:0.7.2') {
exclude(module: 'groovy')
}
// for the RestApiScriptRunner and XmlOutputRunner
compile('ant:ant:1.7.0')
// for evaluating plugin version constraints
compile group: 'com.udojava', name: 'EvalEx', version: '1.0'
compile 'org.yaml:snakeyaml:1.14'
}
tasks.getByName('test').inputs.files(sourceSets.jobs.groovy.srcDirs)
task rest(dependsOn: 'classes', type: JavaExec) {
main = 'com.base2.rest.RestApiScriptRunner'
classpath = sourceSets.main.runtimeClasspath
systemProperties System.getProperties()
}
task jenkins(dependsOn: 'classes', type: JavaExec) {
main = 'com.base2.ciinabox.JobSeeder'
classpath = sourceSets.main.runtimeClasspath
systemProperties System.getProperties()
}
task jobsScriptCompare(dependsOn: 'classes', type: JavaExec) {
main = 'com.base2.ciinabox.ScriptCompare'
classpath = sourceSets.main.runtimeClasspath
systemProperties System.getProperties()
}
task debugXml(dependsOn: 'classes', type: JavaExec) {
main = 'com.base2.debug.XmlOutputRunner'
classpath = sourceSets.main.runtimeClasspath
systemProperties System.getProperties()
}
task wrapper(type: Wrapper) {
gradleVersion = '2.4'
}