diff --git a/.github/workflows/maven-publish-snapshot.yml b/.github/workflows/maven-publish-snapshot.yml index 56815acc..e5951b80 100644 --- a/.github/workflows/maven-publish-snapshot.yml +++ b/.github/workflows/maven-publish-snapshot.yml @@ -19,7 +19,7 @@ jobs: java-version: "17" distribution: "temurin" cache: maven - server-id: ossrh + server-id: central server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index f6ee55e3..cbc6ce45 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -16,7 +16,7 @@ jobs: java-version: "17" distribution: "temurin" cache: maven - server-id: ossrh + server-id: central server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} diff --git a/pom.xml b/pom.xml index af8102f7..5e2e67a3 100644 --- a/pom.xml +++ b/pom.xml @@ -181,14 +181,14 @@ - org.sonatype.plugins - nexus-staging-maven-plugin - 1.7.0 + org.sonatype.central + central-publishing-maven-plugin + 0.6.0 true - ossrh - https://s01.oss.sonatype.org/ - true + central + true + published @@ -301,13 +301,9 @@ - ossrh - https://central.sonatype.com/repository/maven-snapshots/ + central + https://central.sonatype.com/api/v1/publisher/deployments/download/ - - ossrh - https://ossrh-staging-api.central.sonatype.com/service/local/ - @@ -327,8 +323,8 @@ maven-gpg-plugin - org.sonatype.plugins - nexus-staging-maven-plugin + org.sonatype.central + central-publishing-maven-plugin