From 1293d851addc21382ad06f5d4cdff15e88a7ffe1 Mon Sep 17 00:00:00 2001 From: Saransh-SF Date: Tue, 5 May 2026 13:45:32 +0530 Subject: [PATCH] Migrating from legacy oss to central --- .github/workflows/maven-publish.yml | 1 + .github/workflows/maven-release.yml | 2 +- maven-settings.xml | 2 +- pom.xml | 45 +++++++++++------------------ 4 files changed, 20 insertions(+), 30 deletions(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 45f305a..a687c7f 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -33,6 +33,7 @@ jobs: with: # running setup-java again overwrites the settings.xml distribution: 'zulu' java-version: '17' + server-id: central server-username: MAVEN_CENTRAL_USER # env variable for username in deploy server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy settings-path: ${{ github.workspace }}/generated-settings diff --git a/.github/workflows/maven-release.yml b/.github/workflows/maven-release.yml index 6e81fda..f88f021 100644 --- a/.github/workflows/maven-release.yml +++ b/.github/workflows/maven-release.yml @@ -26,7 +26,7 @@ jobs: with: # running setup-java again overwrites the settings.xml distribution: 'zulu' java-version: '17' - server-id: ossrh + server-id: central server-username: MAVEN_CENTRAL_USER # env variable for username in deploy server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy settings-path: ${{ github.workspace }}/generated-settings diff --git a/maven-settings.xml b/maven-settings.xml index c775ce6..fd52e74 100644 --- a/maven-settings.xml +++ b/maven-settings.xml @@ -8,7 +8,7 @@ - ossrh + central ${env.MAVEN_CENTRAL_USER} ${env.MAVEN_CENTRAL_TOKEN} diff --git a/pom.xml b/pom.xml index 3988b87..20a20fa 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ com.salesforce.einsteinbot einstein-bot-sdk-java - 3.0.6-SNAPSHOT + 3.0.6 jar einstein-bot-sdk-java Java SDK to interact with Einstein Bots Runtime. @@ -86,12 +86,12 @@ - ossrh - https://oss.sonatype.org/service/local/staging/deploy/maven2/ + central + https://central.sonatype.com - ossrh - https://oss.sonatype.org/content/repositories/snapshots + central + https://central.sonatype.com @@ -250,14 +250,13 @@ - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.13 + org.sonatype.central + central-publishing-maven-plugin + 0.7.0 true - ossrh - https://oss.sonatype.org/ - true + central + true @@ -489,7 +488,7 @@ --pinentry-mode loopback - 0x0CACA983 + 68223890A60795D1CDAF1A632C21173ED45B29B9 @@ -509,23 +508,13 @@ - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.13 - - - default-deploy - deploy - - deploy - - - + org.sonatype.central + central-publishing-maven-plugin + 0.7.0 + true - ossrh - https://oss.sonatype.org/ - true - 15 + central + true