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 { repositories {
mavenLocal() mavenLocal()
mavenCentral() mavenCentral()
maven(url = "https://repo.openrs2.dev/repository/openrs2") { if (hasProperty("repoUsername")) {
credentials { maven(url = "https://repo.openrs2.dev/repository/openrs2") {
username = findProperty("repoUsername")?.toString() credentials {
password = findProperty("repoPassword")?.toString() username = findProperty("repoUsername")?.toString()
password = findProperty("repoPassword")?.toString()
}
} }
} maven(url = "https://repo.openrs2.dev/repository/openrs2-snapshots") {
maven(url = "https://repo.openrs2.dev/repository/openrs2-snapshots") { credentials {
credentials { username = findProperty("repoUsername")?.toString()
username = findProperty("repoUsername")?.toString() password = findProperty("repoPassword")?.toString()
password = findProperty("repoPassword")?.toString() }
} }
} }
maven(url = "https://dl.bintray.com/michaelbull/maven") maven(url = "https://dl.bintray.com/michaelbull/maven")

Loading…
Cancel
Save