From eb45bc1e620cb6334330c1b4227ec56d47d9337c Mon Sep 17 00:00:00 2001 From: Philipp Page Date: Wed, 28 May 2025 10:31:56 +0200 Subject: [PATCH 1/2] Add Maven Central as release target. --- pom.xml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index bfba70c59..7976894f2 100644 --- a/pom.xml +++ b/pom.xml @@ -100,8 +100,8 @@ - ossrh - https://aws.oss.sonatype.org/content/repositories/snapshots + central-portal-snapshots + https://central.sonatype.com/repository/maven-snapshots/ @@ -439,13 +439,12 @@ - org.sonatype.plugins - nexus-staging-maven-plugin + org.sonatype.central + central-publishing-maven-plugin + 0.7.0 true - ossrh - https://aws.oss.sonatype.org - true + central From b3736a40c7174dc35ce66d2c30bb1f399cb4376a Mon Sep 17 00:00:00 2001 From: Philipp Page Date: Wed, 28 May 2025 13:45:36 +0200 Subject: [PATCH 2/2] Update workflow secrets and SNAPSHOT server id. --- .github/workflows/release.yml | 8 ++++---- pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index da01b89c1..f403f6ca3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -202,14 +202,14 @@ jobs: cache: maven gpg-private-key: ${{ secrets.GPG_SIGNING_KEY }} gpg-passphrase: GPG_PASSPHRASE - server-id: ossrh + server-id: central server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD - name: Publish package run: mvn -Prelease clean deploy -DskipTests env: - MAVEN_USERNAME: ${{ secrets.OSSRH_JIRA_USERNAME }} - MAVEN_PASSWORD: ${{ secrets.OSSRH_JIRA_PASSWORD }} + MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} create_pr: @@ -290,4 +290,4 @@ jobs: run: | aws s3 sync \ dist \ - s3://${{ secrets.AWS_DOCS_BUCKET }}/lambda-java/ \ No newline at end of file + s3://${{ secrets.AWS_DOCS_BUCKET }}/lambda-java/ diff --git a/pom.xml b/pom.xml index 7976894f2..a7eefd20c 100644 --- a/pom.xml +++ b/pom.xml @@ -100,7 +100,7 @@ - central-portal-snapshots + central https://central.sonatype.com/repository/maven-snapshots/