File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -49,11 +49,16 @@ allprojects {
49
49
nexusPublishing {
50
50
this .repositories {
51
51
sonatype {
52
- val sonatypeUsername = System .getenv(" OSSRH_USERNAME" )
53
- val sonatypePassword = System .getenv(" OSSRH_PASSWORD" )
54
- stagingProfileId.set(" 378eecbbe2cf9" )
52
+ val sonatypeUsername = System .getenv(" CENTRAL_PUBLISHER_USERNAME" )
53
+ val sonatypePassword = System .getenv(" CENTRAL_PUBLISHER_PASSWORD" )
55
54
if (sonatypeUsername != null ) username.set(sonatypeUsername)
56
55
if (sonatypePassword != null ) password.set(sonatypePassword)
56
+ // see https://github.com/gradle-nexus/publish-plugin#publishing-to-maven-central-via-sonatype-central
57
+ // For official documentation:
58
+ // staging repo publishing https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#configuration
59
+ // snapshot publishing https://central.sonatype.org/publish/publish-portal-snapshots/#publishing-via-other-methods
60
+ nexusUrl.set(uri(" https://ossrh-staging-api.central.sonatype.com/service/local/" ))
61
+ snapshotRepositoryUrl.set(uri(" https://central.sonatype.com/repository/maven-snapshots/" ))
57
62
}
58
63
}
59
64
}
Original file line number Diff line number Diff line change @@ -42,8 +42,8 @@ stages:
42
42
- aws ssm get-parameter --region us-east-1 --name ci.dd-sdk-android.gradle-properties --with-decryption --query "Parameter.Value" --out text >> ./gradle.properties
43
43
- export GPG_PRIVATE_KEY=$(aws ssm get-parameter --region us-east-1 --name ci.dd-sdk-android.signing.gpg_private_key --with-decryption --query "Parameter.Value" --out text)
44
44
- export GPG_PASSWORD=$(aws ssm get-parameter --region us-east-1 --name ci.dd-sdk-android.signing.gpg_passphrase --with-decryption --query "Parameter.Value" --out text)
45
- - export OSSRH_USERNAME =$(aws ssm get-parameter --region us-east-1 --name ci.dd-sdk-android.signing.ossrh_username --with-decryption --query "Parameter.Value" --out text)
46
- - export OSSRH_PASSWORD =$(aws ssm get-parameter --region us-east-1 --name ci.dd-sdk-android.signing.ossrh_password --with-decryption --query "Parameter.Value" --out text)
45
+ - export CENTRAL_PUBLISHER_USERNAME =$(aws ssm get-parameter --region us-east-1 --name ci.dd-sdk-android.publishing.central_username --with-decryption --query "Parameter.Value" --out text)
46
+ - export CENTRAL_PUBLISHER_PASSWORD =$(aws ssm get-parameter --region us-east-1 --name ci.dd-sdk-android.publishing.central_password --with-decryption --query "Parameter.Value" --out text)
47
47
- export GPG_PUBLIC_FINGERPRINT=$(aws ssm get-parameter --region us-east-1 --name ci.dd-sdk-android.signing.gpg_public_key --with-decryption --query "Parameter.Value" --out text | gpg --import --import-options show-only | grep -E -o -e "[A-F0-9]{40}")
48
48
49
49
# CI IMAGE
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ robolectric = "4.4_r1-robolectric-r2"
68
68
androidLint = " 31.0.2"
69
69
70
70
versionsGradlePlugin = " 0.46.0"
71
- nexusPublishGradlePlugin = " 1.1 .0"
71
+ nexusPublishGradlePlugin = " 2.0 .0"
72
72
datadogPlugin = " 1.18.0"
73
73
74
74
kotlinPoet = " 1.14.2"
You can’t perform that action at this time.
0 commit comments