Skip to content

Commit 429485f

Browse files
authored
Update sonatype publishing urls (#100)
1 parent 835408a commit 429485f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

android/build.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,15 @@ nexusPublishing {
3131
if (user != null && pass != null) {
3232
repositories {
3333
sonatype {
34+
// see: https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#configuration
35+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
36+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
37+
3438
username.set(user)
3539
password.set(pass)
36-
stagingProfileId.set(profileId)
40+
if (!profileId.isNullOrEmpty()) {
41+
stagingProfileId.set(profileId)
42+
}
3743
}
3844
}
3945
transitionCheckOptions {

0 commit comments

Comments
 (0)