diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e67e2a7..981a92e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -45,8 +45,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/build.gradle.kts b/build.gradle.kts index b51c1b4..63731ed 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -3,10 +3,6 @@ import org.gradle.api.tasks.testing.logging.TestExceptionFormat import org.gradle.external.javadoc.CoreJavadocOptions import org.gradle.external.javadoc.StandardJavadocDocletOptions -// These values come from gradle.properties or command line -val ossrhUsername: String? by project -val ossrhPassword: String? by project - buildscript { repositories { mavenCentral() @@ -226,7 +222,10 @@ if (project == rootProject) { configure { clientTimeout.set(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/")) + } } } } diff --git a/gradle.properties b/gradle.properties index a7d4b18..0a27a47 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,8 +1,6 @@ # x-release-please-start-version version=4.2.0 # x-release-please-end -ossrhUsername= -ossrhPassword= # See https://github.com/gradle/gradle/issues/11308 regarding the following property systemProp.org.gradle.internal.publish.checksums.insecure=true