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