File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -238,6 +238,19 @@ subprojects { subproject ->
238
238
jacoco {
239
239
destinationFile = file(" $buildDir /jacoco.exec" )
240
240
}
241
+
242
+ if (System . properties[' sonar.host.url' ]) {
243
+ finalizedBy jacocoTestReport
244
+ }
245
+ }
246
+
247
+ jacocoTestReport {
248
+ reports {
249
+ xml. enabled true
250
+ csv. enabled false
251
+ html. enabled false
252
+ xml. destination file(" ${ buildDir} /reports/jacoco/test/jacocoTestReport.xml" )
253
+ }
241
254
}
242
255
243
256
task testAll(type : Test , dependsOn : check)
@@ -285,7 +298,6 @@ subprojects { subproject ->
285
298
}
286
299
287
300
check. dependsOn javadoc
288
- build. dependsOn jacocoTestReport
289
301
290
302
}
291
303
@@ -477,13 +489,11 @@ task reference(dependsOn: asciidoctor) {
477
489
478
490
sonarqube {
479
491
properties {
480
- property ' sonar.jacoco.reportPath' , " ${ buildDir.name} /jacoco.exec"
481
492
property ' sonar.links.homepage' , linkHomepage
482
493
property ' sonar.links.ci' , linkCi
483
494
property ' sonar.links.issue' , linkIssue
484
495
property ' sonar.links.scm' , linkScmUrl
485
496
property ' sonar.links.scm_dev' , linkScmDevConnection
486
- property ' sonar.java.coveragePlugin' , ' jacoco'
487
497
}
488
498
}
489
499
You can’t perform that action at this time.
0 commit comments