Skip to content

Fix Maven Central publish workflow: use JDK 17#43

Closed
winrid wants to merge 1 commit into
mainfrom
fix-publish-jdk17
Closed

Fix Maven Central publish workflow: use JDK 17#43
winrid wants to merge 1 commit into
mainfrom
fix-publish-jdk17

Conversation

@winrid

@winrid winrid commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Problem

The Publish Android SDK to Maven Central workflow has been failing on every release since v1.0.0. It runs on JDK 11, but:

  • AGP 8.9.1 requires a JDK 17+ runtime, and
  • the newly added Spotless plugin (applied at the root project) also requires JDK 17.

So the build failed during project configuration and nothing was ever published for v1.0.0, v1.1.0, or v2.0.0.

Fix

Bump the workflow's JDK from 11 to 17.

Follow-up

Once merged, the v2.0.0 tag needs to be re-pointed to a commit that includes this fix so the release actually publishes to Maven Central.

AGP 8.9 and the Spotless plugin both require a JDK 17+ runtime, but the
publish workflow ran on JDK 11, so it failed at configuration time (the
last few releases never actually published). Bump the workflow JDK to 17.
@winrid winrid closed this Jul 1, 2026
@winrid
winrid deleted the fix-publish-jdk17 branch July 1, 2026 00:11
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