Skip to content

Commit c067e20

Browse files
author
Aaron
committed
0.41.0.1
- Fix attempt #1 for jacocoRootReport.
1 parent 9fbe027 commit c067e20

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

build.gradle

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
subprojects {
1+
allprojects {
22

33
apply plugin: 'jacoco'
44
apply plugin: 'java'
55
apply plugin: 'maven'
66

77
group 'org.iot-dsa'
8-
version '0.41.0'
8+
version '0.41.0.1'
99

1010
sourceCompatibility = 1.6
1111
targetCompatibility = 1.6
@@ -26,14 +26,32 @@ subprojects {
2626
}
2727

2828
jacocoTestReport {
29+
2930
reports {
30-
xml.enabled true
31+
xml.enabled false
3132
csv.enabled false
3233
html.enabled false
3334
}
3435
}
3536

3637
build.dependsOn jacocoTestReport
38+
//test.finalizedBy(project.tasks.jacocoTestReport)
39+
40+
}
41+
42+
task jacocoRootReport(type: JacocoReport) {
43+
44+
executionData fileTree(project.rootDir.absolutePath).include("**/build/jacoco/*.exec")
45+
46+
subprojects.each {
47+
sourceSets it.sourceSets.main
48+
}
49+
50+
reports {
51+
xml.enabled true
52+
html.enabled false
53+
csv.enabled false
54+
}
3755

3856
}
3957

0 commit comments

Comments
 (0)