From f1622d0c0aa83c0b63ce8d7d21f55296674e9a80 Mon Sep 17 00:00:00 2001 From: Adam <897017+aSemy@users.noreply.github.com> Date: Sun, 4 Jun 2023 17:24:12 +0200 Subject: [PATCH] try only setting sonar properties on the root project --- build.gradle.kts | 11 ++++++++++ .../buildsrc/conventions/sonarqube.gradle.kts | 22 +++++++++---------- 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 3636913..a08d5ee 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -22,3 +22,14 @@ plugins { group = "net.thauvin.erik" 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") + } +} diff --git a/buildSrc/src/main/kotlin/buildsrc/conventions/sonarqube.gradle.kts b/buildSrc/src/main/kotlin/buildsrc/conventions/sonarqube.gradle.kts index 14c29ec..eae56e9 100644 --- a/buildSrc/src/main/kotlin/buildsrc/conventions/sonarqube.gradle.kts +++ b/buildSrc/src/main/kotlin/buildsrc/conventions/sonarqube.gradle.kts @@ -32,17 +32,17 @@ plugins { id("org.sonarqube") id("org.jetbrains.kotlinx.kover") } - -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") - } -} +// +//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") +// } +//} tasks.withType().configureEach { // workaround for https://github.com/Kotlin/kotlinx-kover/issues/394