Skip to content

Commit

Permalink
Update shared.conventions.gradle.kts
Browse files Browse the repository at this point in the history
  • Loading branch information
dhyces committed May 24, 2024
1 parent a228ec9 commit 2eb8999
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions buildSrc/src/main/kotlin/shared.conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,14 @@ publishing {
name = "Local"
url = uri("file://" + findProperty("local_maven"))
}
maven {
name = "Maven"
url = findProperty("mavenUrl")?.let { uri(it) }!!
credentials(PasswordCredentials::class) {
username = findProperty("mavenUsername")?.toString()
password = findProperty("mavenPassword")?.toString()
if (hasProperty("mavenUrl")) {
maven {
name = "Maven"
url = findProperty("mavenUrl")?.let { uri(it) }!!
credentials(PasswordCredentials::class) {
username = findProperty("mavenUsername")?.toString()
password = findProperty("mavenPassword")?.toString()
}
}
}
maven {
Expand Down

0 comments on commit 2eb8999

Please sign in to comment.