forked from jenkinsci/job-dsl-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
79 lines (66 loc) · 1.92 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
75
76
77
78
79
allprojects {
repositories {
mavenCentral()
}
}
defaultTasks 'build' // For BuildHive
subprojects {
group = "org.jenkinsci.plugins"
apply plugin: 'groovy'
sourceCompatibility = 1.5
targetCompatibility = 1.5
dependencies {
compile 'org.codehaus.groovy:groovy-all:1.8.6'
compile 'com.google.guava:guava:14.0.1'
testCompile 'org.spockframework:spock-core:0.6-groovy-1.8'
testCompile 'junit:junit-dep:4.10'
}
test {
useJUnit() // Causes "failed to create temp file to extract class from jar into"
}
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.github.rholder:gradle-one-jar:1.0.3'
}
}
project(':job-dsl-core') {
apply plugin: 'application'
apply plugin: 'maven' // For artifactory publishing
description = "Generates Jenkins jobs via a DSL"
dependencies {
compile 'org.slf4j:slf4j-simple:1.4.3' // For perforce
compile 'commons-codec:commons-codec:1.8' // For perforce
compile 'org.apache.ivy:ivy:2.2.0' // Groovy Optional dependency, needed for @Grab
compile 'xmlunit:xmlunit:1.4' // For runtime use, not just for testing
}
jar {
manifest {
attributes('Main-Class': 'javaposse.jobdsl.Run')
}
}
mainClassName = 'javaposse.jobdsl.Run'
apply plugin: 'gradle-one-jar'
task oneJar(type: OneJar) {
mainClass = project.mainClassName
}
artifacts {
archives oneJar
}
run {
if ( project.hasProperty('args') ) {
args project.args.split('\\s+')
}
}
}
project(':job-dsl-plugin') {
description = "This plugin allows definition of Jobs via a DSL, using existing Jobs as a template."
dependencies {
compile project(':job-dsl-core')
}
}
task wrapper(type: Wrapper) { gradleVersion = '1.7' }
apply from: './job-dsl-plugin/ide.gradle'