diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml
index 5bada36..4356fc9 100644
--- a/.github/workflows/release-publish.yml
+++ b/.github/workflows/release-publish.yml
@@ -23,9 +23,9 @@ jobs:
java-version: '17'
distribution: 'temurin'
cache: 'maven'
- server-id: ossrh
- server-username: MAVEN_USERNAME
- server-password: MAVEN_PASSWORD
+ server-id: central
+ server-username: CENTRAL_TOKEN_USERNAME
+ server-password: CENTRAL_TOKEN_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: GPG_PASSPHRASE
@@ -39,8 +39,8 @@ jobs:
cd accessors-smart
./mvnw clean deploy -q -P release-sign-artifacts
env:
- MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
- MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
+ CENTRAL_TOKEN_USERNAME: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
+ CENTRAL_TOKEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
- name: Release json-smart
@@ -48,8 +48,8 @@ jobs:
cd json-smart
./mvnw clean deploy -q -P release-sign-artifacts
env:
- MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
- MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
+ CENTRAL_TOKEN_USERNAME: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
+ CENTRAL_TOKEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
- name: Release json-smart-action
@@ -57,6 +57,6 @@ jobs:
cd json-smart-action
./mvnw clean deploy -q -P release-sign-artifacts
env:
- MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
- MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
+ CENTRAL_TOKEN_USERNAME: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
+ CENTRAL_TOKEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
diff --git a/accessors-smart/pom.xml b/accessors-smart/pom.xml
index 7305547..4f6981d 100644
--- a/accessors-smart/pom.xml
+++ b/accessors-smart/pom.xml
@@ -59,13 +59,9 @@ limitations under the License.
https://github.com/netplex/json-smart-v2
-
- 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/api/v1/publisher/upload
diff --git a/json-smart-action/pom.xml b/json-smart-action/pom.xml
index 378eace..f0d8e1e 100644
--- a/json-smart-action/pom.xml
+++ b/json-smart-action/pom.xml
@@ -51,13 +51,9 @@
https://github.com/netplex/json-smart-v2
-
- 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/api/v1/publisher/upload
diff --git a/json-smart/pom.xml b/json-smart/pom.xml
index a1fafc6..0e03e13 100644
--- a/json-smart/pom.xml
+++ b/json-smart/pom.xml
@@ -66,13 +66,9 @@ limitations under the License.
https://github.com/netplex/json-smart-v2
-
- 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/api/v1/publisher/upload