Skip to content

fix(ci): use temurin JDK distribution over deprecated adopt - #555

Merged
wax911 merged 1 commit into
developfrom
bugfix/ci-temurin-distribution
Sep 9, 2026
Merged

wax911 merged 1 commit into
developfrom
bugfix/ci-temurin-distribution

Conversation

@wax911

@wax911 wax911 commented Sep 9, 2026

Copy link
Copy Markdown
Member

Problem

Every job that uses .github/actions/android (Spotless, Unit Tests, Publish Artifact, Dokka) fails at the Set up JDK step:

##[error]No supported distribution was found for input adopt

actions/setup-java@v6 (bumped in chore(deps): update actions/setup-java action to v6) dropped the deprecated adopt (AdoptOpenJDK) distribution. The shared setup action still declares distribution: 'adopt', so setup-java aborts 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 spotlessCheck locally).

Fix

Switch the shared setup action to Eclipse Temurin (temurin), AdoptOpenJDK's successor. Temurin provides JDK 21.0.8 pinned in .java-version, so the pinned toolchain is unaffected.

       with:
         java-version-file: '.java-version'
-        distribution: 'adopt'
+        distribution: 'temurin'
         cache: 'gradle'

Verification

  • Confirmed the live CI failure for the latest run on feat/moshi-codegen (and a develop push run) is exactly No supported distribution was found for input adopt.
  • temurin is a supported actions/setup-java distribution and serves JDK 21.0.8.
  • No code change; CI-only.

Impact

Unblocks #552 and restores CI on develop. Once this merges, #552 should be rebased onto develop to inherit the fix.

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.
@wax911 wax911 added the bug fix label Sep 9, 2026
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto approved automated PR

@wax911
wax911 merged commit a996e55 into develop Sep 9, 2026
12 of 13 checks passed
@wax911
wax911 deleted the bugfix/ci-temurin-distribution branch September 9, 2026 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant