-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
69 lines (57 loc) · 1.26 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
apply plugin: 'groovy'
apply plugin: 'jacoco'
repositories {
mavenCentral()
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.github.ksoichiro:gradle-console-reporter:0.5.0'
}
}
apply plugin: 'com.github.ksoichiro.console.reporter'
dependencies {
compile 'org.codehaus.groovy:groovy-all:2.4.11'
testCompile 'com.lesfurets:jenkins-pipeline-unit:1.1'
testCompile 'org.spockframework:spock-core:1.1-groovy-2.4'
testCompile 'cglib:cglib-nodep:3.2.2'
testCompile 'org.objenesis:objenesis:1.2'
testCompile 'org.assertj:assertj-core:3.7.0'
testCompile group: 'junit', name: 'junit', version: '4.11'
}
test {
systemProperty "pipeline.stack.write", System.properties["pipeline.stack.write"]
testLogging {
events "PASSED", "FAILED", "SKIPPED"
}
finalizedBy jacocoTestReport
}
jacoco {
toolVersion = "0.7.9"
reportsDir = file("$buildDir/reports/jacoco")
}
jacocoTestReport {
reports {
csv.enabled true
html.destination file("${buildDir}/reports/jacoco")
}
}
consoleReporter {
jacoco {
onlyWhenCoverageTaskExecuted false
}
}
sourceSets {
main {
groovy {
srcDirs= ['src']
}
}
test {
groovy {
srcDirs= ['test']
}
}
}