-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
56 lines (48 loc) · 1.26 KB
/
build.gradle
File metadata and controls
56 lines (48 loc) · 1.26 KB
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
apply plugin: 'groovy'
apply plugin: 'jacoco'
repositories {
mavenCentral()
maven {
url 'https://repo.jenkins-ci.org/releases'
}
}
dependencies {
implementation 'org.codehaus.groovy:groovy-all:2.4.12'
implementation 'org.yaml:snakeyaml:1.5'
testImplementation platform('org.spockframework:spock-bom:1.3-groovy-2.4')
testImplementation 'org.spockframework:spock-core'
testImplementation 'junit:junit:4.13.1'
testRuntimeOnly 'org.junit.vintage:junit-vintage-engine:5.7.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
testImplementation 'com.lesfurets:jenkins-pipeline-unit:1.8'
}
sourceSets {
main {
groovy {
srcDirs = ['src', 'vars']
}
}
test {
groovy {
srcDirs = ['test']
}
}
}
test {
systemProperty "pipeline.stack.write", project.getProperty("pipeline.stack.write")
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
finalizedBy jacocoTestReport
}
jacocoTestReport {
reports {
csv.enabled false
xml {
enabled true
destination file("${buildDir}/test-results/jacoco.xml")
}
html.destination file("${buildDir}/reports/jacoco")
}
}