spring-framework icon indicating copy to clipboard operation
spring-framework copied to clipboard

Consider adding a `gradle-daemon-jvm.properties` file

Open Sineaggi opened this issue 1 month ago • 0 comments

As of the change made in https://github.com/spring-projects/spring-framework/commit/7edb0b339719db49803f5a81c9501816d75077b0, spring-framework now requires java 25 to build. Furthermore spring-framework now builds with Gradle 9.2.0 https://github.com/spring-projects/spring-framework/commit/9c0f7146392d4883e43ce2a1016fe15a879bfe38 which [promoted[(https://docs.gradle.org/current/release-notes.html#daemon-toolchain-is-now-stable) the daemon toolchain feature.

This should be as simple as adding a gradle/gradle-daemon-jvm.properties file with the following contents.

#This file is generated by updateDaemonJvm
toolchainVersion=25

This would alert users if a developer does not have a valid installation of java 25 available.

Unable to download toolchain matching the requirements ({languageVersion=25, vendor=any vendor, implementation=vendor-specific, nativeImageCapable=false}) from 'null', due to: No defined toolchain download url for MAC_OS on aarch64 architecture.

This feature is also supported by Intellij, which will correctly display the version of java required by the daemon jvm file.

Image

Sineaggi avatar Nov 06 '25 18:11 Sineaggi