Skip to content

Configure Gradle daemon JVM toolchain - #2017

Open
koperagen wants to merge 1 commit into
masterfrom
agent/setup-gradle-daemon-jvm
Open

Configure Gradle daemon JVM toolchain#2017
koperagen wants to merge 1 commit into
masterfrom
agent/setup-gradle-daemon-jvm

Conversation

@koperagen

Copy link
Copy Markdown
Collaborator

Summary

  • add the generated gradle/gradle-daemon-jvm.properties file
  • require Java 21 for the Gradle daemon, matching the existing gradle-jdk version
  • provide Foojay download URLs for supported x86-64 and AArch64 platforms so Gradle can provision the daemon JDK when no compatible local JDK is installed

Validation

  • confirmed the root settings convention already applies org.gradle.toolchains.foojay-resolver-convention 1.0.0
  • confirmed the project pins the Gradle JDK to Java 21
  • verified the branch is one commit ahead of master and changes only the generated daemon JVM properties file

Full build not run; this is a generated build-configuration-only change.

Closes #2016

@koperagen
koperagen force-pushed the agent/setup-gradle-daemon-jvm branch from 04e90b8 to ff94ee9 Compare July 31, 2026 12:13

Copy link
Copy Markdown
Collaborator Author

Updated the implementation after review of the maintenance workflow.

The generated properties file is no longer the only change. The root updateDaemonJvm task now reads its language version from libs.versions.gradle.jdk, making that catalog entry the single source of truth for both project toolchains and the Gradle daemon.

Upgrade workflow, including a future move from JDK 21 to JDK 25:

  1. Change gradle-jdk in gradle/libs.versions.toml.
  2. Run ./gradlew updateDaemonJvm.
  3. Commit the regenerated gradle/gradle-daemon-jvm.properties.

The literal platform URLs in that file are generated task output, analogous to Gradle Wrapper metadata; they are not intended to be edited manually. CONTRIBUTING.md now documents the same workflow and no longer lists a locally installed JDK 21 as a prerequisite.

This comment supersedes the original PR summary, which described the initial generated-file-only version of the change.

@koperagen
koperagen force-pushed the agent/setup-gradle-daemon-jvm branch from 7c64305 to 60b39ea Compare July 31, 2026 12:19
@koperagen
koperagen marked this pull request as ready for review July 31, 2026 13:43
@koperagen koperagen self-assigned this Jul 31, 2026
@koperagen koperagen added the infrastructure GitHub actions, Gradle Scripts, Writerside, etc. label Jul 31, 2026
@koperagen
koperagen requested a review from Jolanrensen July 31, 2026 13:43
@koperagen koperagen added this to the 1.0 milestone Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure GitHub actions, Gradle Scripts, Writerside, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Setup gradle-daemon-jvm.properties

1 participant