From 7f45b62df48d8083242833017a4d069e30e99a02 Mon Sep 17 00:00:00 2001 From: Jan Ouwens Date: Tue, 24 Dec 2024 10:46:20 +0100 Subject: [PATCH] Switches JReleaser from Sonatype/Maven OSSRH to Central Portal --- .github/workflows/release.yml | 6 +++--- jreleaser.yml | 8 +++----- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b61e6c390..f9c3a18d3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,15 +42,15 @@ jobs: uses: jreleaser/release-action@v2 with: setup-java: false - version: 1.12.0 + version: 1.15.0 env: JRELEASER_PROJECT_VERSION: ${{ github.event.inputs.version }} JRELEASER_GITHUB_TOKEN: ${{ secrets.JRELEASER_GITHUB_TOKEN }} JRELEASER_GPG_PASSPHRASE: ${{ secrets.JRELEASER_GPG_PASSPHRASE }} JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.JRELEASER_GPG_PUBLIC_KEY }} JRELEASER_GPG_SECRET_KEY: ${{ secrets.JRELEASER_GPG_SECRET_KEY }} - JRELEASER_NEXUS2_MAVEN_CENTRAL_USERNAME: ${{ secrets.JRELEASER_NEXUS2_MAVEN_CENTRAL_USERNAME }} - JRELEASER_NEXUS2_MAVEN_CENTRAL_PASSWORD: ${{ secrets.JRELEASER_NEXUS2_MAVEN_CENTRAL_PASSWORD }} + JRELEASER_MAVENCENTRAL_SONATYPE_USERNAME: ${{ secrets.JRELEASER_MAVENCENTRAL_SONATYPE_USERNAME }} + JRELEASER_MAVENCENTRAL_SONATYPE_TOKEN: ${{ secrets.JRELEASER_MAVENCENTRAL_SONATYPE_TOKEN }} - name: 'Set release version' run: mvn versions:set --no-transfer-progress --batch-mode -DnewVersion="$NEXT_VERSION" - name: 'Commit & push changes' diff --git a/jreleaser.yml b/jreleaser.yml index 9830c8a7c..076949cc0 100644 --- a/jreleaser.yml +++ b/jreleaser.yml @@ -29,11 +29,9 @@ signing: deploy: maven: - nexus2: - maven-central: + mavenCentral: + sonatype: active: ALWAYS - url: https://oss.sonatype.org/service/local - closeRepository: true - releaseRepository: false + url: https://central.sonatype.com/api/v1/publisher stagingRepositories: - target/staging-deploy