From 9e400c54beea926f0a9d133db781c4b161981cdb Mon Sep 17 00:00:00 2001 From: Abhishek Date: Fri, 25 Jul 2025 11:44:16 +0200 Subject: [PATCH] fix: Fix deployment workflow attempt 2 --- .github/workflows/release.yml | 2 +- pom.xml | 19 +++++++++---------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index db302379..1439ea00 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,7 +20,7 @@ jobs: java-version: 11 distribution: corretto cache: maven - server-id: ossrh # Value of distributionManagement.repository.id field of pom.xml + server-id: central # Value of distributionManagement.repository.id field of pom.xml server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD settings-path: ${{ github.workspace }} # Location for settings.xml file diff --git a/pom.xml b/pom.xml index ec0e5709..08d53df7 100644 --- a/pom.xml +++ b/pom.xml @@ -34,11 +34,11 @@ central - https://central.sonatype.com/content/repositories/snapshots + https://central.sonatype.com/repository/maven-snapshots/ central - https://central.sonatype.com/service/local/staging/deploy/maven2/ + https://central.sonatype.com/repository/maven-releases/ @@ -381,16 +381,15 @@ - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.13 + org.sonatype.central + central-publishing-maven-plugin + 0.8.0 true - central - https://central.sonatype.com/ - true - 600000 - 600000 + central + github-java-client + true + published