-
Notifications
You must be signed in to change notification settings - Fork 52
/
build.gradle
47 lines (38 loc) · 962 Bytes
/
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
apply plugin: 'groovy'
apply plugin: 'jacoco'
apply plugin: 'codenarc'
repositories {
mavenCentral()
}
dependencies {
compile 'org.codehaus.groovy:groovy-all:2.4.12'
testCompile 'com.lesfurets:jenkins-pipeline-unit:1.1'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.7.0'
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.7.0'
testCompile group: 'com.cyrusinnovation', name: 'mockito-groovy-support', version: '1.3'
testImplementation 'org.hamcrest:hamcrest:2.2'
testImplementation 'org.reflections:reflections:0.9.12'
testImplementation 'org.slf4j:slf4j-api:1.7.30'
}
test {
useJUnitPlatform()
}
sourceSets {
test {
groovy {
srcDirs = ['test']
}
}
main {
groovy {
srcDirs = ['src']
}
}
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled true
}
}
check.dependsOn jacocoTestReport