We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 024bb72 commit 2998e84Copy full SHA for 2998e84
settings.gradle
@@ -47,6 +47,11 @@ rootProject.name="spring-boot-build"
47
enableFeaturePreview("STABLE_CONFIGURATION_CACHE")
48
49
settings.gradle.projectsLoaded {
50
+ ensureCompatibleJavaVersion -> {
51
+ if (!JavaVersion.current().isCompatibleWith(JavaVersion.toVersion(24))) {
52
+ throw new GradleException("Java 24 or newer is needed to compile. Java version used is ${JavaVersion.current().toString()}.")
53
+ }
54
55
develocity {
56
buildScan {
57
def toolchainVersion = settings.gradle.rootProject.findProperty('toolchainVersion')
0 commit comments