[build] cache repository fix

This commit is contained in:
Vasily Levchenko
2021-01-13 14:38:27 +01:00
committed by Stanislav Erokhin
parent f27e3b8c26
commit bdc87edfd0
9 changed files with 61 additions and 41 deletions
@@ -4,10 +4,10 @@ import org.jetbrains.kotlin.*
buildscript {
repositories {
maven {
url 'https://cache-redirector.jetbrains.com/jcenter'
}
jcenter()
if (UtilsKt.getCacheRedirectorEnabled(project))
maven { url 'https://cache-redirector.jetbrains.com/jcenter' }
else
jcenter()
maven {
url project.bootstrapKotlinRepo
}
@@ -18,10 +18,10 @@ buildscript {
apply plugin: 'kotlin-multiplatform'
repositories {
maven {
url 'https://cache-redirector.jetbrains.com/jcenter'
}
jcenter()
if (UtilsKt.getCacheRedirectorEnabled(project))
maven { url 'https://cache-redirector.jetbrains.com/jcenter' }
else
jcenter()
}
kotlin {