[build] replace direct urls with cached ones
This commit is contained in:
@@ -18,10 +18,6 @@ buildscript {
|
||||
apply from: "$rootDir/gradle/kotlinGradlePlugin.gradle"
|
||||
apply plugin: 'project-report'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath "com.google.protobuf:protobuf-gradle-plugin:0.8.0"
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ import org.jetbrains.kotlin.konan.target.KonanTarget
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven {
|
||||
url 'https://cache-redirector.jetbrains.com/maven-central'
|
||||
}
|
||||
maven {
|
||||
url kotlinCompilerRepo
|
||||
}
|
||||
|
||||
+3
-1
@@ -58,7 +58,9 @@ allprojects {
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven {
|
||||
url 'https://cache-redirector.jetbrains.com/maven-central'
|
||||
}
|
||||
maven {
|
||||
url kotlinCompilerRepo
|
||||
}
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
allprojects {
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven {
|
||||
url 'https://cache-redirector.jetbrains.com/maven-central'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,9 @@ buildscript {
|
||||
apply plugin: 'kotlin'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven {
|
||||
url 'https://cache-redirector.jetbrains.com/maven-central'
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
Vendored
+4
-2
@@ -33,12 +33,14 @@ buildscript {
|
||||
apply from: "$rootDir/gradle/kotlinGradlePlugin.gradle"
|
||||
|
||||
repositories {
|
||||
jcenter()
|
||||
maven {
|
||||
url = 'https://cache-redirector.jetbrains.com/jcenter'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
abstract class NativeDep extends DefaultTask {
|
||||
static final String baseUrl = "https://download.jetbrains.com/kotlin/native"
|
||||
static final String baseUrl = "https://cache-redirector.jetbrains.com/download.jetbrains.com/kotlin/native"
|
||||
|
||||
@Input
|
||||
abstract String getFileName()
|
||||
|
||||
@@ -3,7 +3,9 @@ if (!hasProperty('buildKotlinVersion')) {
|
||||
}
|
||||
|
||||
project.buildscript.repositories {
|
||||
mavenCentral()
|
||||
maven {
|
||||
url = 'https://cache-redirector.jetbrains.com/maven-central'
|
||||
}
|
||||
}
|
||||
|
||||
project.buildscript.dependencies {
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.7-all.zip
|
||||
distributionUrl=https\://cache-redirector.jetbrains.com/services.gradle.org/distributions/gradle-4.7-all.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
buildscript {
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven {
|
||||
url 'https://cache-redirector.jetbrains.com/maven-central'
|
||||
}
|
||||
maven {
|
||||
url kotlinCompilerRepo
|
||||
}
|
||||
|
||||
@@ -9,7 +9,9 @@ apply plugin: 'konan'
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven {
|
||||
url 'https://cache-redirector.jetbrains.com/maven-central'
|
||||
}
|
||||
maven {
|
||||
url kotlinCompilerRepo
|
||||
}
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
subprojects {
|
||||
buildscript {
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven {
|
||||
url 'https://cache-redirector.jetbrains.com/maven-central'
|
||||
}
|
||||
maven {
|
||||
url "https://dl.bintray.com/jetbrains/kotlin-native-dependencies"
|
||||
}
|
||||
|
||||
@@ -28,7 +28,9 @@ buildscript {
|
||||
apply from: "$rootBuildDirectory/gradle/kotlinGradlePlugin.gradle"
|
||||
|
||||
repositories {
|
||||
jcenter()
|
||||
maven {
|
||||
url = 'https://cache-redirector.jetbrains.com/jcenter'
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
+6
-2
@@ -25,7 +25,9 @@ class MultiplatformSpecification extends BaseKonanSpecification {
|
||||
public static final String DEFAULT_COMMON_BUILD_FILE_CONTENT = """\
|
||||
buildscript {
|
||||
repositories {
|
||||
jcenter()
|
||||
maven {
|
||||
url = 'https://cache-redirector.jetbrains.com/jcenter'
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$KOTLIN_VERSION"
|
||||
@@ -35,7 +37,9 @@ class MultiplatformSpecification extends BaseKonanSpecification {
|
||||
apply plugin: 'kotlin-platform-common'
|
||||
|
||||
repositories {
|
||||
jcenter()
|
||||
maven {
|
||||
url = 'https://cache-redirector.jetbrains.com/jcenter'
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
Reference in New Issue
Block a user