Skip to content

Conversation

aSemy
Copy link
Contributor

@aSemy aSemy commented Jul 28, 2024

To maximise Gradle cache hits, and to use the best Gradle features, use Java 21 to run Gradle builds.

Gradle has a new feature for running the Gradle Daemon with a fixed Java version. This can be configured to run automatically. Currently Gradle does not auto-provision the necessary Java version, but hopefully this will be available in Gradle 8.10.

This PR should be merged after #4218, which will ensure that a stable JDK is used for compilation and running tests.

To maximise Gradle cache hits, and to use the best Gradle features, use Java 21 to run Gradle builds.

Gradle has a new feature for running the Gradle Daemon with a fixed Java version. This can be configured to run automatically. Currently Gradle does not auto-provision the necessary Java version, but hopefully this will be available in Gradle 8.10.
@aSemy aSemy added the builds 🐘 PRs / Issues related to the CI/CD pipelines or Gradle builds label Jul 28, 2024
@aSemy aSemy marked this pull request as ready for review July 29, 2024 20:21
@sksamuel sksamuel enabled auto-merge August 3, 2024 07:03
@sksamuel sksamuel added this pull request to the merge queue Aug 3, 2024
Merged via the queue into master with commit e94007b Aug 3, 2024
7 checks passed
@sksamuel sksamuel deleted the adam/feat/gradle-daemon-use-jdk-21 branch August 3, 2024 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
builds 🐘 PRs / Issues related to the CI/CD pipelines or Gradle builds
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants