Skip to content

Commit

Permalink
Upgrade Sonarqube plugin for Gradle 8 compatibility (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp94831 authored Feb 21, 2024
1 parent f384dda commit ab57607
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sonar/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Test> {
Expand Down
2 changes: 1 addition & 1 deletion sonar/src/main/kotlin/com/bakdata/gradle/SonarPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class SonarPlugin : Plugin<Project> {
}

// using a newer feature of sonarqube to use the xml reports which also makes it language-agnostic
configure<org.sonarqube.gradle.SonarQubeExtension> {
configure<org.sonarqube.gradle.SonarExtension> {
properties {
property("sonar.coverage.jacoco.xmlReportPaths",
rootProject.tasks.withType<JacocoReport>().map { it.reports.xml.destination })
Expand Down

0 comments on commit ab57607

Please sign in to comment.