forked from jenkinsci/job-dsl-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
129 lines (119 loc) · 4.15 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
buildscript {
repositories {
maven {
url('https://repo.jenkins-ci.org/public/')
}
}
dependencies {
// see https://github.com/kohsuke/localizer/issues/12
classpath 'org.jvnet.localizer:maven-localizer-plugin:1.23'
}
}
plugins {
id 'org.jenkins-ci.jpi' version '0.43.0'
}
java {
registerFeature('vsphereCloud') {
usingSourceSet(sourceSets.main)
}
registerFeature('configFileProvider') {
usingSourceSet(sourceSets.main)
}
registerFeature('managedScripts') {
usingSourceSet(sourceSets.main)
}
registerFeature('configurationAsCode') {
usingSourceSet(sourceSets.main)
}
}
description = 'Jenkins plugin to leverage job-dsl-core to programmatic create jobs from inside Jenkins.'
// keep the generated sources outside of the build directory, see http://stackoverflow.com/a/21003914/1271460
def generatedSourcesDir = 'generated'
jenkinsPlugin {
coreVersion = project.properties['jenkinsVersion']
displayName = 'Job DSL'
url = 'https://github.com/jenkinsci/job-dsl-plugin'
gitHubUrl = 'https://github.com/jenkinsci/job-dsl-plugin'
compatibleSinceVersion = '1.78'
localizerOutputDir = "$generatedSourcesDir/localizer"
disabledTestInjection = false
developers {
developer {
id 'quidryan'
name 'Justin Ryan'
email 'jryan@netflix.com'
}
developer {
id 'andrewharmellaw'
name 'Andrew Harmel-Law'
email 'andrew@harmel-law.com'
}
developer {
id 'daspilker'
name 'Daniel Spilker'
email 'mail@daniel-spilker.com'
}
developer {
id 'jamietanna'
name 'Jamie Tanna'
email 'jenkins@jamietanna.co.uk'
}
developer {
id 'sheehan'
name 'Matt Sheehan'
email 'mr.sheehan@gmail.com'
}
}
licenses {
license {
name 'Apache License, Version 2.0'
url 'https://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
}
clean {
delete generatedSourcesDir
}
test {
/* TODO useful in conjunction with BuildWatcher, but better to enable conditionally (in jpi plugin?) as in https://github.com/jenkinsci/plugin-pom/blob/d1c2e7dc75692014184260f6d975bac36b1123b1/pom.xml#L955-L965
testLogging {
showStandardStreams = true
}
*/
systemProperty 'jenkins.test.noSpaceInTmpDirs', 'true'
}
jpi {
into('api-viewer') {
from(project(':job-dsl-api-viewer').projectDir) {
include 'index.html'
include 'build/dist/**'
}
}
dependsOn tasks.getByPath(':job-dsl-api-viewer:build')
}
dependencies {
annotationProcessor 'net.java.sezpoz:sezpoz:1.13'
annotationProcessor 'org.jenkins-ci:annotation-indexer:1.12'
testAnnotationProcessor 'net.java.sezpoz:sezpoz:1.13'
testAnnotationProcessor 'org.jenkins-ci:annotation-indexer:1.12'
compile(project(':job-dsl-core')) {
exclude group: 'org.jvnet.hudson', module:'xstream'
}
implementation 'org.jenkins-ci.plugins:cloudbees-folder:5.14'
implementation 'org.jenkins-ci.plugins:branch-api:2.6.3'
implementation 'org.jenkins-ci.plugins:structs:1.19'
implementation 'org.jenkins-ci.plugins:scm-api:2.3.0'
implementation 'org.jenkins-ci.plugins:script-security:1.54'
vsphereCloudImplementation('org.jenkins-ci.plugins:vsphere-cloud:1.1.11') {
exclude group: 'dom4j'
}
configFileProviderImplementation 'org.jenkins-ci.plugins:config-file-provider:2.15.4'
managedScriptsImplementation 'org.jenkinsci.plugins:managed-scripts:1.3'
configurationAsCodeImplementation 'io.jenkins:configuration-as-code:1.35'
testRuntimeOnly "org.jenkins-ci.main:jenkins-war:${project.properties['jenkinsVersion']}"
testImplementation 'io.jenkins:configuration-as-code:1.35'
testImplementation 'io.jenkins.configuration-as-code:test-harness:1.35'
testImplementation 'org.jenkins-ci.plugins:matrix-auth:1.3'
testImplementation 'org.jenkins-ci.plugins:nested-view:1.14'
testImplementation 'org.jenkins-ci.plugins:credentials:2.3.11'
}