From ab5760745ae430ad1315685e5ab06364966a15ef Mon Sep 17 00:00:00 2001 From: Philipp Schirmer Date: Wed, 21 Feb 2024 08:44:23 +0100 Subject: [PATCH] Upgrade Sonarqube plugin for Gradle 8 compatibility (#37) --- sonar/build.gradle.kts | 2 +- sonar/src/main/kotlin/com/bakdata/gradle/SonarPlugin.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sonar/build.gradle.kts b/sonar/build.gradle.kts index cdb3694..d978929 100644 --- a/sonar/build.gradle.kts +++ b/sonar/build.gradle.kts @@ -7,7 +7,7 @@ apply(plugin = "org.gradle.kotlin.kotlin-dsl") description = "Configures sonar for multi project setups for all jvm languages" dependencies { - implementation( "org.sonarsource.scanner.gradle", "sonarqube-gradle-plugin", "3.4.0.2513") + implementation( "org.sonarsource.scanner.gradle", "sonarqube-gradle-plugin", "4.4.1.3373") } tasks.withType { diff --git a/sonar/src/main/kotlin/com/bakdata/gradle/SonarPlugin.kt b/sonar/src/main/kotlin/com/bakdata/gradle/SonarPlugin.kt index e55c709..2a9ecf1 100644 --- a/sonar/src/main/kotlin/com/bakdata/gradle/SonarPlugin.kt +++ b/sonar/src/main/kotlin/com/bakdata/gradle/SonarPlugin.kt @@ -101,7 +101,7 @@ class SonarPlugin : Plugin { } // using a newer feature of sonarqube to use the xml reports which also makes it language-agnostic - configure { + configure { properties { property("sonar.coverage.jacoco.xmlReportPaths", rootProject.tasks.withType().map { it.reports.xml.destination })