Browse Source

Skip openrs2 repositories if no username/password are supplied

pull/66/head
Graham 3 years ago
parent
commit
e6ac51688c
  1. 20
      build.gradle.kts

20
build.gradle.kts

@ -21,16 +21,18 @@ allprojects { @@ -21,16 +21,18 @@ allprojects {
repositories {
mavenLocal()
mavenCentral()
maven(url = "https://repo.openrs2.dev/repository/openrs2") {
credentials {
username = findProperty("repoUsername")?.toString()
password = findProperty("repoPassword")?.toString()
if (hasProperty("repoUsername")) {
maven(url = "https://repo.openrs2.dev/repository/openrs2") {
credentials {
username = findProperty("repoUsername")?.toString()
password = findProperty("repoPassword")?.toString()
}
}
}
maven(url = "https://repo.openrs2.dev/repository/openrs2-snapshots") {
credentials {
username = findProperty("repoUsername")?.toString()
password = findProperty("repoPassword")?.toString()
maven(url = "https://repo.openrs2.dev/repository/openrs2-snapshots") {
credentials {
username = findProperty("repoUsername")?.toString()
password = findProperty("repoPassword")?.toString()
}
}
}
maven(url = "https://dl.bintray.com/michaelbull/maven")

Loading…
Cancel
Save