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