This repository was archived by the owner on Jul 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
59 lines (50 loc) · 1.36 KB
/
build.gradle
File metadata and controls
59 lines (50 loc) · 1.36 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
57
58
59
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Groovy project to get you started.
* For more details take a look at the Groovy Quickstart chapter in the Gradle
* user guide available at https://docs.gradle.org/5.0/userguide/tutorial_groovy_projects.html
*/
plugins {
// Apply the groovy plugin to add support for Groovy
id 'groovy'
id 'jacoco'
id 'codenarc'
}
repositories {
jcenter()
mavenCentral()
}
dependencies {
implementation 'org.codehaus.groovy:groovy-all:2.4.7'
testCompile 'com.lesfurets:jenkins-pipeline-unit:1.1'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.7.1'
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.7.1'
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'
compile files('lib/jenkinsfile-pipeline.jar')
}
test {
useJUnitPlatform()
}
sourceSets {
test {
groovy {
srcDirs = ['test']
}
}
main {
groovy {
srcDirs = ['src']
}
}
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled true
}
}
check.dependsOn jacocoTestReport