diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2e4ec8ce5..87c87ae69 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,7 +35,7 @@ jobs: distribution: temurin java-version: 17 cache: 'maven' - server-id: ossrh + server-id: central server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD @@ -51,7 +51,7 @@ jobs: cat release.properties git checkout ${{github.base_ref}} git rebase release - mvn -B release:perform -Prelease -Darguments="-DperformRelease" + mvn -B release:perform -Prelease env: MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} diff --git a/pom.xml b/pom.xml index 4fe5a1039..ff68d8880 100644 --- a/pom.xml +++ b/pom.xml @@ -64,6 +64,7 @@ ${java.version} 1.3.1 3.12.0 + 0.11.0 3.3.1 3.4.0 3.6.0 @@ -207,6 +208,17 @@ + + org.sonatype.central + central-publishing-maven-plugin + ${version.org.sonatype.central} + true + + central + true + uploaded + + org.codehaus.mojo @@ -248,6 +260,17 @@ + + org.sonatype.central + central-publishing-maven-plugin + ${version.org.sonatype.central} + true + + central + true + uploaded + + org.apache.maven.plugins maven-gpg-plugin @@ -405,17 +428,6 @@ - - - ossrh-snapshots - https://oss.sonatype.org/content/repositories/snapshots - - - ossrh - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - - central