diff --git a/.github/resources/settings.xml b/.github/resources/settings.xml
index f3bc754e2..da1d3057d 100644
--- a/.github/resources/settings.xml
+++ b/.github/resources/settings.xml
@@ -7,9 +7,9 @@
- ossrh
- ${env.NEXUS_OSSRH_USERNAME}
- ${env.NEXUS_OSSRH_PASSWORD}
+ central
+ ${env.CENTRAL_USERNAME}
+ ${env.CENTRAL_TOKEN}
diff --git a/.github/scripts/publish_artifacts.sh b/.github/scripts/publish_artifacts.sh
index cd1a5b75c..8e20af88f 100755
--- a/.github/scripts/publish_artifacts.sh
+++ b/.github/scripts/publish_artifacts.sh
@@ -26,7 +26,7 @@ gpg --import --no-tty --batch --yes firebase.asc
# 1. Compiles the source (compile phase)
# 2. Packages the artifacts - src, bin, javadocs (package phase)
# 3. Signs the artifacts (verify phase)
-# 4. Publishes artifacts via Nexus (deploy phase)
+# 4. Publishes artifacts via Central Publisher Portal (deploy phase)
mvn -B clean deploy \
-Dcheckstyle.skip \
-DskipTests \
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index d6f744c69..86774e50c 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -100,8 +100,8 @@ jobs:
env:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
- NEXUS_OSSRH_USERNAME: ${{ secrets.NEXUS_OSSRH_USERNAME }}
- NEXUS_OSSRH_PASSWORD: ${{ secrets.NEXUS_OSSRH_PASSWORD }}
+ CENTRAL_USERNAME: ${{ secrets.CENTRAL_USERNAME }}
+ CENTRAL_TOKEN: ${{ secrets.CENTRAL_TOKEN }}
# See: https://cli.github.com/manual/gh_release_create
- name: Create release tag
diff --git a/pom.xml b/pom.xml
index 990e4d6dc..ff3a085f3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -69,13 +69,6 @@
HEAD
-
-
- ossrh
- https://oss.sonatype.org/content/repositories/snapshots
-
-
-
devsite-apidocs
@@ -350,14 +343,14 @@
- org.sonatype.plugins
- nexus-staging-maven-plugin
- 1.7.0
+ org.sonatype.central
+ central-publishing-maven-plugin
+ 0.8.0
true
- ossrh
- https://oss.sonatype.org/
- true
+ central
+ true
+ published