From a67092e1dd0d10ef093268c3676e63015a09aad1 Mon Sep 17 00:00:00 2001 From: Todd Anderson Date: Fri, 27 Jun 2025 16:27:25 -0500 Subject: [PATCH] ci: migrating publishing to use central portal --- .github/workflows/manual-publish.yml | 4 ++-- lib/sdk/server/build.gradle | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/manual-publish.yml b/.github/workflows/manual-publish.yml index 84b0a94..02a8650 100644 --- a/.github/workflows/manual-publish.yml +++ b/.github/workflows/manual-publish.yml @@ -38,8 +38,8 @@ jobs: name: Get secrets with: aws_assume_role: ${{ vars.AWS_ROLE_ARN }} - ssm_parameter_pairs: '/production/common/releasing/sonatype/username = SONATYPE_USER_NAME, - /production/common/releasing/sonatype/password = SONATYPE_PASSWORD, + ssm_parameter_pairs: '/production/common/releasing/sonatype/central/username = SONATYPE_USER_NAME, + /production/common/releasing/sonatype/central/password = SONATYPE_PASSWORD, /production/common/releasing/java/keyId = SIGNING_KEY_ID' s3_path_pairs: 'launchdarkly-releaser/java/code-signing-keyring.gpg = code-signing-keyring.gpg' diff --git a/lib/sdk/server/build.gradle b/lib/sdk/server/build.gradle index a93dab6..6d5bfd1 100644 --- a/lib/sdk/server/build.gradle +++ b/lib/sdk/server/build.gradle @@ -600,7 +600,10 @@ if (project == rootProject) { nexusPublishing { clientTimeout = java.time.Duration.ofMinutes(2) // we've seen extremely long delays in creating repositories repositories { - sonatype() + sonatype{ + nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/")) + snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/")) + } } } }