diff --git a/.github/workflows/publish_to_maven_central.yml b/.github/workflows/publish_to_maven_central.yml
index a965037..21fcf24 100644
--- a/.github/workflows/publish_to_maven_central.yml
+++ b/.github/workflows/publish_to_maven_central.yml
@@ -15,7 +15,7 @@ jobs:
with:
java-version: 8
distribution: 'corretto'
- server-id: ossrh
+ server-id: central
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
diff --git a/pom.xml b/pom.xml
index 11e8069..6e0b0d2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -56,13 +56,13 @@
https://github.com/pinterest/psc
HEAD
-
-
- ossrh
- Central Repository OSSRH
- https://oss.sonatype.org/service/local/staging/deploy/maven2/
-
-
+
+
+
+
+
+
+
@@ -184,15 +184,25 @@
+
+
+
+
+
+
+
+
+
+
+
- org.sonatype.plugins
- nexus-staging-maven-plugin
- 1.6.7
+ org.sonatype.central
+ central-publishing-maven-plugin
+ 0.8.0
true
- ossrh
- https://oss.sonatype.org/
- true
+ central
+ true