Build: Use cacheRedirector flag for bootstrap
This commit is contained in:
+2
-2
@@ -6,13 +6,13 @@ import proguard.gradle.ProGuardTask
|
|||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
extra["defaultSnapshotVersion"] = "1.3-SNAPSHOT"
|
extra["defaultSnapshotVersion"] = "1.3-SNAPSHOT"
|
||||||
|
val cacheRedirectorEnabled = findProperty("cacheRedirectorEnabled")?.toString()?.toBoolean() == true
|
||||||
|
|
||||||
kotlinBootstrapFrom(BootstrapOption.BintrayBootstrap("1.3.60-dev-770"))
|
kotlinBootstrapFrom(BootstrapOption.BintrayBootstrap("1.3.60-dev-770", cacheRedirectorEnabled))
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
bootstrapKotlinRepo?.let(::maven)
|
bootstrapKotlinRepo?.let(::maven)
|
||||||
|
|
||||||
val cacheRedirectorEnabled = findProperty("cacheRedirectorEnabled")?.toString()?.toBoolean() == true
|
|
||||||
if (cacheRedirectorEnabled) {
|
if (cacheRedirectorEnabled) {
|
||||||
maven("https://cache-redirector.jetbrains.com/plugins.gradle.org/m2")
|
maven("https://cache-redirector.jetbrains.com/plugins.gradle.org/m2")
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user