try only setting sonar properties on the root project
This commit is contained in:
parent
c1efd8a955
commit
f1622d0c0a
2 changed files with 22 additions and 11 deletions
|
@ -22,3 +22,14 @@ plugins {
|
||||||
|
|
||||||
group = "net.thauvin.erik"
|
group = "net.thauvin.erik"
|
||||||
version = "1.4.0-SNAPSHOT"
|
version = "1.4.0-SNAPSHOT"
|
||||||
|
|
||||||
|
sonarqube {
|
||||||
|
properties {
|
||||||
|
property("sonar.projectName", rootProject.name)
|
||||||
|
property("sonar.projectKey", "ethauvin_${rootProject.name}")
|
||||||
|
property("sonar.organization", "ethauvin-github")
|
||||||
|
property("sonar.host.url", "https://sonarcloud.io")
|
||||||
|
property("sonar.sourceEncoding", "UTF-8")
|
||||||
|
property("sonar.coverage.jacoco.xmlReportPaths", "${project.buildDir}/reports/kover/report.xml")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -32,17 +32,17 @@ plugins {
|
||||||
id("org.sonarqube")
|
id("org.sonarqube")
|
||||||
id("org.jetbrains.kotlinx.kover")
|
id("org.jetbrains.kotlinx.kover")
|
||||||
}
|
}
|
||||||
|
//
|
||||||
sonarqube {
|
//sonarqube {
|
||||||
properties {
|
// properties {
|
||||||
property("sonar.projectName", rootProject.name)
|
// property("sonar.projectName", rootProject.name)
|
||||||
property("sonar.projectKey", "ethauvin_${rootProject.name}")
|
// property("sonar.projectKey", "ethauvin_${rootProject.name}")
|
||||||
property("sonar.organization", "ethauvin-github")
|
// property("sonar.organization", "ethauvin-github")
|
||||||
property("sonar.host.url", "https://sonarcloud.io")
|
// property("sonar.host.url", "https://sonarcloud.io")
|
||||||
property("sonar.sourceEncoding", "UTF-8")
|
// property("sonar.sourceEncoding", "UTF-8")
|
||||||
property("sonar.coverage.jacoco.xmlReportPaths", "${project.buildDir}/reports/kover/report.xml")
|
// property("sonar.coverage.jacoco.xmlReportPaths", "${project.buildDir}/reports/kover/report.xml")
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
|
|
||||||
tasks.withType<SonarTask>().configureEach {
|
tasks.withType<SonarTask>().configureEach {
|
||||||
// workaround for https://github.com/Kotlin/kotlinx-kover/issues/394
|
// workaround for https://github.com/Kotlin/kotlinx-kover/issues/394
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue