diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 1649cd3..681f408 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -34,9 +34,9 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
- server-id: ossrh
- server-username: OSSRH_TOKEN_USER
- server-password: OSSRH_TOKEN_KEY
+ server-id: central
+ server-username: MAVEN_CENTRAL_TOKEN_USERNAME
+ server-password: MAVEN_CENTRAL_TOKEN_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
@@ -47,5 +47,5 @@ jobs:
mvn -B -DdryRun=${{inputs.dry_run}} -DreleaseVersion=${{inputs.release_version}} -DdevelopmentVersion=${{inputs.development_version}} release:prepare release:perform
env:
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
- OSSRH_TOKEN_USER: ${{ vars.OSSRH_TOKEN_USER }}
- OSSRH_TOKEN_KEY: ${{ secrets.OSSRH_TOKEN_KEY }}
+ MAVEN_CENTRAL_TOKEN_USERNAME: ${{ vars.MAVEN_CENTRAL_TOKEN_USERNAME }}
+ MAVEN_CENTRAL_TOKEN_PASSWORD: ${{ secrets.MAVEN_CENTRAL_TOKEN_PASSWORD }}
diff --git a/pom.xml b/pom.xml
index 0c06734..de58818 100644
--- a/pom.xml
+++ b/pom.xml
@@ -52,6 +52,7 @@
5.11.0
+ 0.9.0
3.5.4
3.5.4
0.15.2
@@ -61,7 +62,6 @@
3.2.8
3.3.0
1.7.0
- 3.1.4
3.6.2
@@ -190,15 +190,6 @@
v@{project.version}
-
- org.apache.maven.plugins
- maven-deploy-plugin
- ${maven-deploy-plugin.version}
-
- true
-
-
-
org.codehaus.mojo
exec-maven-plugin
@@ -258,14 +249,14 @@
- org.sonatype.plugins
- nexus-staging-maven-plugin
- ${nexus-staging-maven-plugin.version}
+ org.sonatype.central
+ central-publishing-maven-plugin
+ ${central-publishing-maven-plugin.version}
true
- ossrh
- https://s01.oss.sonatype.org/
- true
+ central
+ true
+ published
@@ -281,13 +272,9 @@
-
- ossrh
- https://s01.oss.sonatype.org/content/repositories/snapshots
-
- ossrh
- https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/
+ central
+ https://central.sonatype.com