[build] cache repository fix
This commit is contained in:
committed by
Stanislav Erokhin
parent
f27e3b8c26
commit
bdc87edfd0
@@ -7,6 +7,7 @@ import org.jetbrains.kotlin.gradle.plugin.tasks.KonanCompileNativeBinary
|
||||
import org.jetbrains.kotlin.*
|
||||
import org.jetbrains.kotlin.konan.target.Family
|
||||
import org.jetbrains.kotlin.konan.target.KonanTarget
|
||||
import org.jetbrains.kotlin.UtilsKt
|
||||
|
||||
import java.nio.file.Paths
|
||||
|
||||
@@ -14,11 +15,12 @@ import static org.jetbrains.kotlin.konan.target.Architecture.*
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
if (UtilsKt.getCacheRedirectorEnabled(project))
|
||||
maven { url 'https://cache-redirector.jetbrains.com/maven-central'}
|
||||
else
|
||||
mavenCentral()
|
||||
|
||||
maven {
|
||||
url 'https://cache-redirector.jetbrains.com/maven-central'
|
||||
}
|
||||
mavenCentral()
|
||||
maven {
|
||||
url project.bootstrapKotlinRepo
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user