diff --git a/settings.gradle b/settings.gradle index 6499f0eefb..8e1bc96421 100644 --- a/settings.gradle +++ b/settings.gradle @@ -31,12 +31,10 @@ rootProject.name="spring-boot-build" settings.gradle.projectsLoaded { gradleEnterprise { buildScan { - if (settings.gradle.rootProject.hasProperty('toolchainVersion')) { - def toolchainVersion = settings.gradle.rootProject.findProperty('toolchainVersion') - if (toolchainVersion != null) { - value('Toolchain version', toolchainVersion) - tag("JDK-$toolchainVersion") - } + def toolchainVersion = settings.gradle.rootProject.findProperty('toolchainVersion') + if (toolchainVersion != null) { + value('Toolchain version', toolchainVersion) + tag("JDK-$toolchainVersion") } settings.gradle.rootProject.getBuildDir().mkdirs()