Skip openrs2 repositories if no username/password are supplied

master
Graham 5 years ago
parent e480ce282a
commit e6ac51688c
  1. 2
      build.gradle.kts

@ -21,6 +21,7 @@ allprojects {
repositories { repositories {
mavenLocal() mavenLocal()
mavenCentral() mavenCentral()
if (hasProperty("repoUsername")) {
maven(url = "https://repo.openrs2.dev/repository/openrs2") { maven(url = "https://repo.openrs2.dev/repository/openrs2") {
credentials { credentials {
username = findProperty("repoUsername")?.toString() username = findProperty("repoUsername")?.toString()
@ -33,6 +34,7 @@ allprojects {
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