Skip to content

ci: install JDK 8 for the Gradle toolchain - #1014

Merged
jbachorik merged 1 commit into
developfrom
ci/setup-jdk8-toolchain
Nov 13, 2026
Merged

jbachorik merged 1 commit into
developfrom
ci/setup-jdk8-toolchain

Conversation

@jbachorik

@jbachorik jbachorik commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

What does this change do?

Installs Temurin 8 through actions/setup-java in every job that runs the root Gradle build (18 jobs in continuous.yml, codeql-analysis.yml, release.yml, v2-protocol-tests.yml and sdkman-set-default.yml).

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 (common.gradle) and the workflows took it from the runner image, so every Gradle job fails at configuration:

Cannot find a Java installation on your machine (Linux 7.0.0-1019-azure amd64) matching: {languageVersion=8, ...}. Toolchain download repositories have not been configured.

This currently fails the scheduled CodeQL run on develop and the build, Analyze (java) and tests-passed checks on the open Renovate PRs (#1010 to #1013). Jobs that last ran on ubuntu-24.04 are green only until their next run.

It also corrects a comment in continuous.yml that 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

  • I identified the affected module(s) and kept unrelated changes out of this PR.
  • This preserves the supported Java/runtime compatibility tiers, or the change is documented below.
  • This does not change the masked-JAR layout, class-loader boundary, or wire protocol.
  • If it does, I updated the relevant architecture documentation and verification plan.

Compatibility or migration notes:

None. Workflow files only.

Testing

  • Unit tests
  • Integration tests (if applicable)
  • spotlessCheck
  • Documentation/link or sample verification (if applicable)

Commands and results:

actionlint -ignore shellcheck .github/workflows/*.yml → exit 0

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. The release.yml and sdkman-set-default.yml jobs do not run on a PR, so those edits are checked by lint only.

Documentation and release impact

  • User-facing documentation is updated, or no documentation change is needed.
  • Release notes/changelog are updated, or no release-note entry is needed.
  • Samples, distribution contents, or published coordinates are updated if affected.
  • This change is safe to merge independently of a release, or the dependency is explained below.

Release notes / follow-up work:

The Renovate PRs need a rebase after this merges.

Final checklist

  • I reviewed the complete diff and removed unrelated changes.
  • New or changed behavior has appropriate tests, or the reason for not adding them is explained above.
  • User-facing behavior, APIs, samples, and documentation are consistent with this change.
  • I did not include generated build output, local configuration, credentials, or other accidental files.

🤖 Generated with Claude Code


This change is Reviewable

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>
@jbachorik
jbachorik marked this pull request as ready for review November 13, 2026 07:41
@jbachorik
jbachorik merged commit 3d0db89 into develop Nov 13, 2026
20 checks passed
@jbachorik
jbachorik deleted the ci/setup-jdk8-toolchain branch November 13, 2026 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant