File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,10 @@ plugins {
2222 id " org.jetbrains.dokka" version " 2.1.0"
2323}
2424
25+ if (! JavaVersion . current(). isCompatibleWith(JavaVersion . VERSION_24 )) {
26+ throw new GradleException (" This build requires Java 24 or newer to run, but you are currently using Java ${ JavaVersion.current()} " )
27+ }
28+
2529repositories {
2630 mavenCentral()
2731 gradlePluginPortal()
Original file line number Diff line number Diff line change @@ -47,11 +47,6 @@ rootProject.name="spring-boot-build"
4747enableFeaturePreview(" STABLE_CONFIGURATION_CACHE" )
4848
4949settings. 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- }
5550 develocity {
5651 buildScan {
5752 def toolchainVersion = settings. gradle. rootProject. findProperty(' toolchainVersion' )
You can’t perform that action at this time.
0 commit comments