forked from cfpb/jenkins-automation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
63 lines (53 loc) · 1.54 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
group 'gov.cfpb'
version '1.0-SNAPSHOT'
task wrapper(type: Wrapper) {
gradleVersion = '2.8'
distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip"
}
apply plugin: 'groovy'
apply plugin: 'java'
apply plugin: 'maven'
repositories {
mavenCentral()
jcenter()
maven { url 'http://repo.jenkins-ci.org/releases/' }
}
configurations {
groovyDoc
}
dependencies {
compile gradleApi()
// compile localGroovy()
compile 'org.ini4j:ini4j:0.5.1'
compile "org.yaml:snakeyaml:1.10"
compile 'org.codehaus.groovy:groovy-all:2.4.4'
testCompile group: 'junit', name: 'junit', version: '4.11'
compile 'org.jenkins-ci.plugins:job-dsl-core:1.48'
testCompile('org.spockframework:spock-core:0.7-groovy-2.0') {
exclude module: 'groovy-all'
}
groovyDoc 'org.codehaus.groovy:groovy-groovydoc:2.4.4'
groovyDoc 'org.codehaus.groovy:groovy-ant:2.3.3'
// for the RestApiScriptRunner
compile('ant:ant:1.7.0')
compile('org.codehaus.groovy.modules.http-builder:http-builder:0.7.2') {
exclude(module: 'groovy')
}
}
task rest(dependsOn: 'classes', type: JavaExec) {
main = 'jenkins.automation.rest.RestApiScriptRunner'
classpath = sourceSets.main.runtimeClasspath
systemProperties System.getProperties()
}
sourceSets {
main {
groovy {
srcDirs = ['src/main/groovy', 'example-jobs' ]
}
}
}
groovydoc {
groovyClasspath = configurations.groovyDoc
source = files('src/main/groovy')
destinationDir = file('.')
}