Skip to content

Commit 911108e

Browse files
authored
Add files via upload
1 parent 8e7a5bb commit 911108e

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

build.gradle

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
buildscript {
2+
ext {
3+
springBootVersion = '1.5.3.RELEASE'
4+
}
5+
repositories {
6+
mavenCentral()
7+
}
8+
dependencies {
9+
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
10+
}
11+
}
12+
13+
configure(subprojects) {
14+
apply plugin: 'java'
15+
apply plugin: 'jacoco'
16+
apply plugin: 'org.springframework.boot'
17+
18+
sourceCompatibility = 1.8
19+
targetCompatibility = 1.8
20+
ext.jacocoVersion = '0.7.6.201602180812'
21+
22+
repositories {
23+
mavenCentral()
24+
}
25+
26+
dependencies {
27+
runtime ("org.jacoco:org.jacoco.agent:${jacocoVersion}")
28+
}
29+
30+
test {
31+
println "[TEST] I'm ${project.name}"
32+
jacoco {
33+
append = false
34+
destinationFile = file("${buildDir.name}/jacoco/test.exec")
35+
}
36+
}
37+
38+
jacocoTestReport {
39+
group = "Project Test Reports"
40+
description = "Generate Jacoco coverage reports after running tests."
41+
additionalSourceDirs = files(sourceSets.main.allJava.srcDirs)
42+
reports {
43+
xml.enabled false
44+
csv.enabled false
45+
html.destination "${buildDir}/reports/jacocoHtml"
46+
sourceSets sourceSets.main
47+
}
48+
}
49+
}
50+
51+
task wrapper(type: Wrapper) {
52+
gradleVersion = '4.2.1'
53+
}

0 commit comments

Comments
 (0)