diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4b21eec..6c40b01 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -94,14 +94,14 @@ jobs: java-version: '11' distribution: 'adopt' cache: maven - server-id: ossrh + server-id: central server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase - name: "Central Deploy" - run: mvn -B -Possrh deploy --file pom.xml -DskipTests + run: mvn -B -Pcentral deploy --file pom.xml -DskipTests env: MAVEN_USERNAME: ${{ secrets.OSSRH_USER }} MAVEN_PASSWORD: ${{ secrets.OSSRH_PASS }} diff --git a/pom.xml b/pom.xml index 042c84f..03fee76 100644 --- a/pom.xml +++ b/pom.xml @@ -25,7 +25,7 @@ providers/yaml providers/gson - + providers/sql providers/mongodb @@ -274,18 +274,21 @@ - ossrh - - - ossrh - https://s01.oss.sonatype.org/content/repositories/snapshots - - - - ossrh - https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ - - + central + + + + org.sonatype.central + central-publishing-maven-plugin + 0.7.0 + true + + central + true + + + +