-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
53 lines (40 loc) · 1.38 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
apply plugin: 'java'
apply plugin: 'project-report'
repositories {
maven {
url 'https://repo.jenkins-ci.org/public/'
}
}
configurations {
testPlugins {}
}
configurations.all*.exclude group: 'xalan'
dependencies {
compile 'org.glassfish.jersey.media:jersey-media-sse:2.25',
'org.glassfish.jersey.media:jersey-media-json-jackson:2.25'
testCompile 'org.jvnet:tiger-types:2.2',
'org.jenkins-ci.main:jenkins-test-harness:2.8',
"org.jenkins-ci.main:jenkins-war:${jenkinsVersion}:war-for-test@jar"
testCompile "org.jenkins-ci.main:jenkins-war:${jenkinsVersion}"
testPlugins 'org.jenkins-ci.modules:pubsub-light:1.3',
'org.jenkins-ci.plugins:sse-gateway:1.10'
}
task resolveTestPlugins(type: Copy) {
from configurations.testPlugins
into new File(sourceSets.test.output.resourcesDir, 'test-dependencies')
include '*.hpi'
include '*.jpi'
doLast {
def baseNames = source.collect { it.name[0..it.name.lastIndexOf('.')-1] }
new File(destinationDir, 'index').setText(baseNames.join('\n'), 'UTF-8')
}
}
test {
dependsOn tasks.resolveTestPlugins
exclude '**/XmlOutput.class'
// set build directory for Jenkins test harness, JENKINS-26331
systemProperty 'buildDirectory', project.buildDir.absolutePath
testLogging {
showStandardStreams = true
}
}