Skip to content

Commit

Permalink
Use tasks.jacocoTestReport
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Oct 8, 2023
1 parent 703c035 commit 4a8b51a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ gradlePlugin {
testSourceSets(sourceSets["functionalTest"])
}

val jacocoTestReport = tasks.named<JacocoReport>("jacocoTestReport") {
tasks.jacocoTestReport {
reports.named("xml") {
required = true
}
Expand All @@ -62,7 +62,7 @@ sonarqube {
property("sonar.projectKey", "com.github.spotbugs.gradle")
property("sonar.organization", "spotbugs")
property("sonar.host.url", "https://sonarcloud.io")
property("sonar.coverage.jacoco.xmlReportPaths", jacocoTestReport.flatMap { it.reports.xml.outputLocation })
property("sonar.coverage.jacoco.xmlReportPaths", tasks.jacocoTestReport.flatMap { it.reports.xml.outputLocation })
}
}

Expand All @@ -73,5 +73,5 @@ tasks {
}
tasks.check {
dependsOn(tasks.named("functionalTest"))
dependsOn(jacocoTestReport)
dependsOn(tasks.jacocoTestReport)
}

0 comments on commit 4a8b51a

Please sign in to comment.