diff --git a/.github/workflows/branch.yaml b/.github/workflows/branch.yaml
index d5a69b25..3a93cbb5 100644
--- a/.github/workflows/branch.yaml
+++ b/.github/workflows/branch.yaml
@@ -34,7 +34,7 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 8
- server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
+ server-id: central # Value of the distributionManagement/repository/id field of the pom.xml
server-username: MAVEN_USERNAME # env variable for username in deploy
server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
diff --git a/pom.xml b/pom.xml
index 48c170ac..79d9cd53 100644
--- a/pom.xml
+++ b/pom.xml
@@ -105,13 +105,13 @@
- ossrh
- https://oss.sonatype.org/content/repositories/snapshots
+ central
+ https://central.sonatype.com/repository/maven-snapshots/
- ossrh
- https://oss.sonatype.org/service/local/staging/deploy/maven2/
+ central
+ https://central.sonatype.com
@@ -229,17 +229,15 @@
- org.sonatype.plugins
- nexus-staging-maven-plugin
- 1.6.8
+ org.sonatype.central
+ central-publishing-maven-plugin
+ 0.8.0
true
- ossrh
- https://oss.sonatype.org/
- true
+ central
+ true
-
org.apache.maven.plugins
maven-gpg-plugin