Skip to content

ci: publish to maven central without the portal click - #681

Merged
andiwand merged 3 commits into
mainfrom
ci/maven-auto-publish
Aug 10, 2026
Merged

ci: publish to maven central without the portal click#681
andiwand merged 3 commits into
mainfrom
ci/maven-auto-publish

Conversation

@andiwand

Copy link
Copy Markdown
Member

Both Central uploads parked a deployment in the Sonatype portal and waited for
someone to press release. That step gets forgotten — v6.3.0 and v6.4.0 both sat
unpublished — and nobody inspects the deployment while it waits, so it buys
nothing.

  • jni/pom.xml: autoPublish=true in the central profile. The plugin's
    waitUntil default is validated, so a bundle the portal rejects still fails
    the build instead of being published.
  • android/build.gradle.kts: publishToMavenCentral(true, VALIDATED). With the
    automatic path on, the plugin waits for the portal's verdict itself, which is
    what .github/scripts/await-central-validation.sh was doing by hand — script
    and its workflow step are gone, along with the tee/pipefail plumbing that
    fed it.

Verified -Pcentral resolves to autoPublish=true via help:effective-pom,
and that the android publishing tasks still configure. The real check is the
next release.

andiwand and others added 2 commits August 10, 2026 19:46
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AHuzgqeyTCZgudXffVR45c
The vanniktech plugin validates the deployment on the automatic path, so
the polling script is no longer needed.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AHuzgqeyTCZgudXffVR45c

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 88d7ccbad3

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread android/build.gradle.kts Outdated
Comment thread jni/pom.xml
The release status reports a version as published from these jobs' exit
codes, and validation passing is no promise that publishing did.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AHuzgqeyTCZgudXffVR45c
@andiwand
andiwand merged commit a55de94 into main Aug 10, 2026
25 checks passed
@andiwand
andiwand deleted the ci/maven-auto-publish branch August 10, 2026 17:59
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