Repository navigation
TS-47184 Build with Gradle 9 and bundle a Java 25 runtime - #92
Merged
Merged
Conversation
The build failed on machines with only Java 25 installed: Gradle 8.14 cannot run on Java 25, and the Java 17 toolchain could not be downloaded because no toolchain resolver was configured. - Upgrade Gradle to 9.8.1 and the runtime plugin to 2.0.1 - Add the foojay toolchain resolver, so Gradle downloads the JDK itself - Build with a Temurin 25 toolchain and bundle a Java 25 runtime - Download the jmods of each target platform separately, because Temurin 25 no longer ships them (JEP 493) - Fail the build if jmods are missing, because the runtime plugin would otherwise silently link the build host's runtime - Keep file permissions in the distribution zips, which Gradle 9 now normalizes to 644 - Enable native access for JNA to avoid a warning on every run - Drop the empty jdk.crypto.ec module - Set up Java 25 in CI and update setup-gradle to v5 - Remove the outdated Maven and GraalVM parts of README_DEV_SETUP.md Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…orms - Declare the unpacked jmods as an input of the jre task. A plain dependency left jre up to date after a RUNTIME_JDK_VERSION update, so an incremental build kept the old runtime. - Define the jmods location once instead of three times - Fail the build if a runtime image's java executable is built for another platform than its name says, because CI runs only the Linux image - Delete build-windows.bat and package-windows.bat, which called the removed Maven build Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The jmods of the bundled Java runtime are now dependencies from an Ivy repository on Adoptium's GitHub releases instead of a custom download task. Gradle caches them, so a clean build no longer downloads them again. Dependency verification checks the SHA-256 of the jmods archives and of all dependencies and plugins against gradle/verification-metadata.xml. The recorded hashes match the checksums Adoptium and the Maven repositories publish. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The build failed on machines with only Java 25 installed: Gradle 8.14 cannot run on Java 25, and the Java 17 toolchain could not be downloaded because no toolchain resolver was configured.
Addresses issue TS-XXXXX
Please respect the vote of the Teamscale bot or flag irrelevant findings as tolerated or
false positives. If you feel that the Teamscale config or architecture file needs adjustment, please state so in a
comment and discuss this with your reviewer.