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 {
232
232
}
233
233
}
234
234
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
+
235
247
artifactory {
236
248
clientConfig.info.buildName = " sonar-kotlin"
237
249
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
6
6
plugins {
7
7
id(" com.gradleup.shadow" ) version " 8.3.1"
8
8
kotlin(" jvm" )
9
+ id(" jacoco-report-aggregation" )
9
10
}
10
11
11
12
dependencies {
@@ -141,3 +142,8 @@ fun checkJarEntriesPathUniqueness(file: File) {
141
142
throw GradleException (" Duplicated entries in the jar: '${file.path} ': ${duplicatedNames.joinToString(" , " )} " )
142
143
}
143
144
}
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