Skip to content

Commit 5d3c1b4

Browse files
authored
code cov integration
1 parent beaeab5 commit 5d3c1b4

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

build.gradle

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,11 @@ buildscript {
2222

2323

2424

25-
26-
27-
28-
29-
3025
subprojects {
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
}

0 commit comments

Comments
 (0)