Skip to content

Commit

Permalink
Configure JDK home for sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklakariada committed May 1, 2024
1 parent f05b4a9 commit a912098
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,15 @@ nexusStaging {
password = getOptionalProperty("ossrhPassword")
}

def launcher = javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(javaVersion)
}

sonarqube {
properties {
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.organization", "itsallcode"
property "sonar.java.jdkHome", launcher.map { it.metadata.installationPath }
}
}

Expand Down

0 comments on commit a912098

Please sign in to comment.