File tree Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -22,15 +22,11 @@ buildscript {
2222
2323
2424
25-
26-
27-
28-
29-
3025subprojects {
3126
3227 apply plugin : ' idea'
3328 apply plugin : ' java'
29+ apply plugin : ' jacoco'
3430 apply plugin : ' nebula-interactive'
3531
3632 sourceCompatibility = 1.8
@@ -45,7 +41,23 @@ subprojects {
4541 compileOnly(' org.projectlombok:lombok:1.16.6' )
4642 }
4743
44+ }
45+
46+ task codeCoverageReport (type : JacocoReport ) {
47+ executionData fileTree(project. rootDir. absolutePath). include(" **/build/jacoco/*.exec" )
4848
49+ subprojects. each {
50+ sourceSets it. sourceSets. main
51+ }
4952
53+ reports {
54+ xml. enabled true
55+ xml. destination " ${ buildDir} /reports/jacoco/report.xml"
56+ html. enabled false
57+ csv. enabled false
58+ }
59+ }
5060
61+ codeCoverageReport. dependsOn {
62+ subprojects* . test
5163}
You can’t perform that action at this time.
0 commit comments