fix(ci): use temurin JDK distribution over deprecated adopt - #555
Merged
Merged
Conversation
actions/setup-java@v6 dropped the deprecated 'adopt' (AdoptOpenJDK) distribution, so every job using .github/actions/android fails at 'Set up JDK' with: No supported distribution was found for input adopt. Eclipse Temurin is AdoptOpenJDK's successor and provides JDK 21.0.8 pinned in .java-version. This restores CI for develop and all PRs.
Up to standards ✅🟢 Issues
|
wax911
enabled auto-merge (squash)
September 9, 2026 18:06
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.
Problem
Every job that uses
.github/actions/android(Spotless, Unit Tests, Publish Artifact, Dokka) fails at the Set up JDK step:actions/setup-java@v6(bumped inchore(deps): update actions/setup-java action to v6) dropped the deprecatedadopt(AdoptOpenJDK) distribution. The shared setup action still declaresdistribution: 'adopt', sosetup-javaaborts before./gradlew spotlessCheck(or any build) runs. develop's own Android CI has been red since 2026-09-05 for the same reason.This was surfaced while reviewing #552 — its Spotless job fails at setup, not on any formatting violation (the PR's content passes
spotlessChecklocally).Fix
Switch the shared setup action to Eclipse Temurin (
temurin), AdoptOpenJDK's successor. Temurin provides JDK21.0.8pinned in.java-version, so the pinned toolchain is unaffected.with: java-version-file: '.java-version' - distribution: 'adopt' + distribution: 'temurin' cache: 'gradle'Verification
feat/moshi-codegen(and a develop push run) is exactlyNo supported distribution was found for input adopt.temurinis a supportedactions/setup-javadistribution and serves JDK 21.0.8.Impact
Unblocks #552 and restores CI on develop. Once this merges, #552 should be rebased onto develop to inherit the fix.