From 8d005d1a21fa275a5338cc24e65a0d75c575a1cd Mon Sep 17 00:00:00 2001 From: boronine-bot Date: Sat, 1 Aug 2026 05:12:28 +0000 Subject: [PATCH] Migrate from OSSRH to Central Publishing Maven Plugin - Replace nexus-staging-maven-plugin with central-publishing-maven-plugin 0.11.0 - Remove distributionManagement (no longer needed) - Update README deployment instructions for new Central Publishing flow - Use Portal token authentication instead of legacy OSSRH credentials --- README.md | 28 +++++++++++----------------- pom.xml | 20 ++++++-------------- 2 files changed, 17 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index 03f6cce..a1d11f4 100644 --- a/README.md +++ b/README.md @@ -73,31 +73,25 @@ var color = android.graphics.Color.rgb(r, g, b); Docs: -- https://central.sonatype.org/publish/publish-maven/ +- https://central.sonatype.org/publish/publish-portal-maven/ - https://central.sonatype.org/publish/requirements/gpg/ +- https://central.sonatype.org/publish/generate-portal-token/ -Set `~/m2/settings.xml`: +Generate a Portal token at https://central.sonatype.com, then set `~/.m2/settings.xml`: ```xml - ossrh - hsluv - REDACTEDREDACTEDREDACTED + central + + + + + EBFD22439E5C59D664D0CFC750617B51F61187C2 + - - - ossrh - - true - - - REDACTEDREDACTEDREDACTED - - - ``` @@ -105,5 +99,5 @@ Then run: ```bash mvn versions:set -DnewVersion=0.3 # bump version -mvn clean deploy -P release +mvn clean deploy ``` diff --git a/pom.xml b/pom.xml index f1c00da..b45ae17 100644 --- a/pom.xml +++ b/pom.xml @@ -57,25 +57,17 @@ - - - ossrh - https://oss.sonatype.org/content/repositories/snapshots - - - - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.13 + org.sonatype.central + central-publishing-maven-plugin + 0.11.0 true - ossrh - https://oss.sonatype.org/ - true + central + true + published