[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
+5 -2
View File
@@ -1,11 +1,14 @@
import org.jetbrains.kotlin.UtilsKt
import org.jetbrains.kotlin.gradle.plugin.konan.tasks.KonanCacheTask
import org.jetbrains.kotlin.EndorsedLibraryInfo
import org.jetbrains.kotlin.UtilsKt
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()
}
}
@@ -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 {