Added quarkus test compatability with sonar through jacoco reporter
This commit is contained in:
@@ -21,7 +21,15 @@ sonar {
|
||||
if (report.exists()) report.absolutePath else null
|
||||
}.joinToString(",")
|
||||
|
||||
val jacocoReports = subprojects.mapNotNull { subproject ->
|
||||
val report = subproject.file("build/reports/jacoco/test/jacocoTestReport.xml")
|
||||
if (report.exists()) report.absolutePath else null
|
||||
}.joinToString(",")
|
||||
|
||||
property("sonar.scala.coverage.reportPaths", scoverageReports)
|
||||
if (jacocoReports.isNotEmpty()) {
|
||||
property("sonar.coverage.jacoco.xmlReportPaths", jacocoReports)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user