-
Notifications
You must be signed in to change notification settings - Fork 96
/
Copy pathbuild.gradle
53 lines (46 loc) · 1.24 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
buildscript {
ext {
springBootVersion = '1.5.3.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
configure(subprojects) {
apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'org.springframework.boot'
sourceCompatibility = 1.8
targetCompatibility = 1.8
ext.jacocoVersion = '0.7.6.201602180812'
repositories {
mavenCentral()
}
dependencies {
runtime ("org.jacoco:org.jacoco.agent:${jacocoVersion}")
}
test {
println "[TEST] I'm ${project.name}"
jacoco {
append = false
destinationFile = file("${buildDir.name}/jacoco/test.exec")
}
}
jacocoTestReport {
group = "Project Test Reports"
description = "Generate Jacoco coverage reports after running tests."
additionalSourceDirs = files(sourceSets.main.allJava.srcDirs)
reports {
xml.enabled false
csv.enabled false
html.destination "${buildDir}/reports/jacocoHtml"
sourceSets sourceSets.main
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '4.2.1'
}