Skip to content

Commit cf4e46e

Browse files
authored
fix: migrating publishing to use central portal (#78)
Following https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/ as OSSRH is now deprecated.
1 parent dccfc2f commit cf4e46e

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/manual-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ jobs:
3838
name: Get secrets
3939
with:
4040
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}
41-
ssm_parameter_pairs: '/production/common/releasing/sonatype/username = SONATYPE_USER_NAME,
42-
/production/common/releasing/sonatype/password = SONATYPE_PASSWORD,
41+
ssm_parameter_pairs: '/production/common/releasing/sonatype/central/username = SONATYPE_USER_NAME,
42+
/production/common/releasing/sonatype/central/password = SONATYPE_PASSWORD,
4343
/production/common/releasing/java/keyId = SIGNING_KEY_ID'
4444
s3_path_pairs: 'launchdarkly-releaser/java/code-signing-keyring.gpg = code-signing-keyring.gpg'
4545

lib/sdk/server/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,10 @@ if (project == rootProject) {
600600
nexusPublishing {
601601
clientTimeout = java.time.Duration.ofMinutes(2) // we've seen extremely long delays in creating repositories
602602
repositories {
603-
sonatype()
603+
sonatype{
604+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
605+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
606+
}
604607
}
605608
}
606609
}

0 commit comments

Comments
 (0)