Repository navigation
chore: set up Java 17 in the publish release workflow - #2821
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
📊 Diff Coverage Report✓ Coverage check passed (no source files changed) |
abdulraqeeb33
left a comment
There was a problem hiding this comment.
The failed publish run matches the description. The runner was on Java 25.0.4.1, the old step installed OpenJDK 11, and AGP 8.8.2 stopped with "requires Java 17".
The new step is the same actions/setup-java@v5 / Temurin 17 config as project-setup and setup-demo. It runs before every ./gradlew call in the job. This PR's CI is green on that same JDK. The publish workflow itself stays workflow_dispatch, so the next release run is the first time this file executes.
|
This does not change what customers compile against or what runs on their devices. Customers consume the published AAR. Their build does not recompile the SDK sources, so their JDK does not have to match the JDK used in this workflow. Class files stay Java 8 bytecode ( CI was already running on JDK 17. This makes the publish job use that same JDK. AGP 8.8.2 needs JDK 17 to perform the build. That requirement is for the machine building the SDK. |
Description
One Line Summary
Use
actions/setup-javawith Java 17 in the Publish Release workflow, matching the other workflows.Details
Motivation
Publish Release failed in run 40624882153 with
Android Gradle plugin requires Java 17 to run. You are currently using Java 11.The runner image now defaults to Java 25. The old "Ensure Java 11 or 17" step treated anything other than 11 or 17 as a reason to install OpenJDK 11, and AGP rejects Java 11. In September the runner defaulted to 17, so that step did nothing.
Scope
Only the Java setup step in
publish-release.ymlchanges. It now uses the samesetup-java@v5/ Temurin 17 config as.github/actions/project-setup. The build, signing, and publish steps are unchanged.Testing
Manual testing
Not run yet. The workflow only runs on
workflow_dispatchand publishes, so it gets verified on the next release run.Affected code checklist
Checklist
Overview
Testing
Final pass
🤖 Generated with Claude Code