diff --git a/build.gradle b/build.gradle index 49f7fca6..0ab1b7ef 100644 --- a/build.gradle +++ b/build.gradle @@ -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 } } }