Skip openrs2 repositories if no username/password are supplied

bzip2
Graham 5 years ago
parent e480ce282a
commit e6ac51688c
  1. 20
      build.gradle.kts

@ -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