Repository navigation
ci: install JDK 8 for the Gradle toolchain - #1014
Merged
Merged
Conversation
ubuntu-latest now resolves to ubuntu-26.04, which ships JDK 11, 17, 21 and 25 but no JDK 8. The build requests a JDK 8 toolchain, which the workflows took from the runner image, so every Gradle job failed at configuration with "Cannot find a Java installation ... languageVersion=8". Each job that runs the root build now installs Temurin 8 through setup-java. Verified: actionlint -ignore shellcheck passes. The fix itself can only be confirmed by a CI run on ubuntu-26.04. Co-Authored-By: Claude Fable 5.2 <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.
What does this change do?
Installs Temurin 8 through
actions/setup-javain every job that runs the root Gradle build (18 jobs incontinuous.yml,codeql-analysis.yml,release.yml,v2-protocol-tests.ymlandsdkman-set-default.yml).ubuntu-latestnow resolves toubuntu-26.04, which ships JDK 11, 17, 21 and 25 but no JDK 8. The build requests a JDK 8 toolchain (common.gradle) and the workflows took it from the runner image, so every Gradle job fails at configuration:This currently fails the scheduled CodeQL run on
developand thebuild,Analyze (java)andtests-passedchecks on the open Renovate PRs (#1010 to #1013). Jobs that last ran onubuntu-24.04are green only until their next run.It also corrects a comment in
continuous.ymlthat said toolchains come from "the foojay resolver" (it is declared in the version catalog but never applied) and one line in the workflows README.Alternative considered: pinning
runs-on: ubuntu-24.04. Rejected because it only postpones the problem.Related issue
N/A
Scope and compatibility
Compatibility or migration notes:
None. Workflow files only.
Testing
spotlessCheckCommands and results:
NOT VERIFIED: that Gradle resolves the JDK 8 toolchain on
ubuntu-26.04. This PR's own checks are the verification; it stays a draft until they pass. Therelease.ymlandsdkman-set-default.ymljobs do not run on a PR, so those edits are checked by lint only.Documentation and release impact
Release notes / follow-up work:
The Renovate PRs need a rebase after this merges.
Final checklist
🤖 Generated with Claude Code
This change is