Skip to content

Commit 837eda3

Browse files
committed
Populate sonar.projectKey property
* Change deprecated `sonar.jacoco.reportPath` to a new recommended one - `sonar.coverage.jacoco.xmlReportPaths`
1 parent c8befb2 commit 837eda3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.gradle

+2-1
Original file line numberDiff line numberDiff line change
@@ -966,13 +966,14 @@ reference.onlyIf { "$System.env.NO_REFERENCE_TASK" != 'true' || project.hasPrope
966966

967967
sonarqube {
968968
properties {
969-
property 'sonar.jacoco.reportPath', "${buildDir.name}/jacoco.exec"
969+
property 'sonar.coverage.jacoco.xmlReportPaths', "${buildDir.name}/jacoco.exec"
970970
property 'sonar.links.homepage', linkHomepage
971971
property 'sonar.links.ci', linkCi
972972
property 'sonar.links.issue', linkIssue
973973
property 'sonar.links.scm', linkScmUrl
974974
property 'sonar.links.scm_dev', linkScmDevConnection
975975
property 'sonar.java.coveragePlugin', 'jacoco'
976+
property 'sonar.projectKey', "$group:$name"
976977
}
977978
}
978979

0 commit comments

Comments
 (0)