Skip to content

Commit d9c886f

Browse files
fix publishing url by overriding indra
1 parent 2ec983b commit d9c886f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

build.gradle.kts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@ plugins {
66
// Project metadata is configured in gradle.properties
77

88
nexusPublishing {
9+
val sonatypeUsername: String = (findProperty("sonatypeUsername") as? String) ?: ""
10+
val sonatypePassword: String = (findProperty("sonatypePassword") as? String) ?: ""
11+
912
repositories {
10-
sonatype {
13+
named("sonatype") {
1114
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
1215
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
13-
username.set(findProperty("sonatypeUsername") as String)
14-
password.set(findProperty("sonatypePassword") as String)
16+
username.set(sonatypeUsername)
17+
password.set(sonatypePassword)
1518
}
1619
}
1720
}

0 commit comments

Comments
 (0)