Skip to content

Commit

Permalink
Build: Use cache redirector for buildscript block of :kotlin-reflect
Browse files Browse the repository at this point in the history
  • Loading branch information
4u7 committed Aug 21, 2019
1 parent 2514d6f commit 42f4975
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libraries/reflect/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ description = "Kotlin Full Reflection Library"

buildscript {
repositories {
maven(url = "https://kotlin.bintray.com/kotlinx/")
val cacheRedirectorEnabled = findProperty("cacheRedirectorEnabled")?.toString()?.toBoolean() == true
if (cacheRedirectorEnabled) {
maven(url = "https://cache-redirector.jetbrains.com/dl.bintray.com/kotlin/kotlinx")
} else {
maven(url = "https://dl.bintray.com/kotlin/kotlinx/")
}
}

dependencies {
Expand Down

0 comments on commit 42f4975

Please sign in to comment.