File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -232,6 +232,18 @@ sonarqube {
232232 }
233233}
234234
235+ subprojects {
236+ sonarqube.properties {
237+ property(
238+ " sonar.coverage.jacoco.xmlReportPaths" ,
239+ listOf (
240+ " build/reports/jacoco/test/jacocoTestReport.xml" ,
241+ " ${project.rootDir} /sonar-kotlin-plugin/build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml"
242+ ).joinToString(" ," )
243+ )
244+ }
245+ }
246+
235247artifactory {
236248 clientConfig.info.buildName = " sonar-kotlin"
237249 clientConfig.info.buildNumber = System .getenv(" BUILD_NUMBER" )
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import java.util.jar.JarInputStream
66plugins {
77 id(" com.gradleup.shadow" ) version " 8.3.1"
88 kotlin(" jvm" )
9+ id(" jacoco-report-aggregation" )
910}
1011
1112dependencies {
@@ -141,3 +142,8 @@ fun checkJarEntriesPathUniqueness(file: File) {
141142 throw GradleException (" Duplicated entries in the jar: '${file.path} ': ${duplicatedNames.joinToString(" , " )} " )
142143 }
143144}
145+
146+ tasks.check {
147+ // Generate aggregate coverage report
148+ dependsOn(tasks.named<JacocoReport >(" testCodeCoverageReport" ))
149+ }
You can’t perform that action at this time.
0 commit comments