diff --git a/.github/settings.xml b/.github/settings.xml index b3cb38b..8b4c4d3 100644 --- a/.github/settings.xml +++ b/.github/settings.xml @@ -1,9 +1,9 @@ - ossrh + central ${env.SONATYPE_USERNAME} ${env.SONATYPE_PASSWORD} - \ No newline at end of file + diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 679ac6c..8e52943 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,7 @@ jobs: java-version: '8' distribution: 'zulu' cache: 'maven' - server-id: ossrh + server-id: central server-username: SONATYPE_USERNAME server-password: SONATYPE_PASSWORD gpg-private-key: ${{ secrets.SONATYPE_GPG_PRIVATE_KEY }} diff --git a/pom.xml b/pom.xml index 6d54bd1..4bc0224 100644 --- a/pom.xml +++ b/pom.xml @@ -22,7 +22,7 @@ - ossrh + central gpg ${env.SONATYPE_GPG_KEYNAME} @@ -93,14 +93,14 @@ - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.2 + org.sonatype.central + central-publishing-maven-plugin + 0.7.0 true - ossrh - https://oss.sonatype.org/ - true + central + true + published @@ -311,14 +311,4 @@ http://www.apache.org/licenses/LICENSE-2.0.txt - - - ossrh - https://oss.sonatype.org/content/repositories/snapshots - - - ossrh - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - -