Skip to content

fix: use gradle-nexus plugin for Maven Central publish#5

Merged
safenestdev merged 1 commit into
mainfrom
fix/maven-central-nexus-plugin
Feb 23, 2026
Merged

fix: use gradle-nexus plugin for Maven Central publish#5
safenestdev merged 1 commit into
mainfrom
fix/maven-central-nexus-plugin

Conversation

@safenestdev

Copy link
Copy Markdown
Contributor

Summary

  • Add gradle-nexus/publish-plugin to handle the full staging lifecycle (upload → close → release)
  • The previous maven-publish plugin only uploaded artifacts but never closed/released the staging repository, so nothing appeared on Maven Central
  • Update workflow to use publishToSonatype closeSonatypeStagingRepository

Test plan

  • Build and tests pass locally
  • publishToMavenLocal generates all expected artifacts
  • Nexus plugin tasks (publishToSonatype, closeSonatypeStagingRepository) are registered
  • Merge, create release, and verify artifact appears on Maven Central

The maven-publish plugin only uploads artifacts but doesn't close/release
the staging repository. Switch to gradle-nexus/publish-plugin which
handles upload, close, and release automatically.
@safenestdev safenestdev merged commit 435607a into main Feb 23, 2026
2 checks passed
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