forked from cfpb/jenkins-as-code-starter-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
43 lines (37 loc) · 1.08 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
apply plugin: 'groovy'
apply plugin: 'maven'
apply plugin: 'idea'
repositories {
mavenCentral()
jcenter()
maven { url "https://jitpack.io" }
maven { url "http://repo.jenkins-ci.org/releases/" }
}
dependencies {
//compile gradleApi()
compile 'org.ini4j:ini4j:0.5.1'
compile 'org.codehaus.groovy:groovy-all:2.3.11'
testCompile group: 'junit', name: 'junit', version: '4.11'
compile 'org.jenkins-ci.plugins:job-dsl-core:1.39'
testCompile('org.spockframework:spock-core:0.7-groovy-2.0')
{
exclude module: 'groovy-all'
}
compile 'com.github.cfpb:jenkins-automation:-SNAPSHOT'
}
task wrapper(type: Wrapper) {
gradleVersion = '2.2'
distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip"
}
task rest(type: JavaExec) {
main = 'jenkins.automation.rest.RestApiScriptRunner'
classpath = sourceSets.main.runtimeClasspath
systemProperties System.getProperties()
}
sourceSets {
main {
groovy {
srcDirs = ['src/main/groovy', 'jobs' ]
}
}
}