[build] replace direct urls with cached ones

This commit is contained in:
Vasily Levchenko
2018-07-06 17:38:44 +03:00
parent 009deaa2e6
commit 2e4cd70f1a
13 changed files with 38 additions and 18 deletions
-4
View File
@@ -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"
}
+3 -1
View File
@@ -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
View File
@@ -58,7 +58,9 @@ allprojects {
}
repositories {
mavenCentral()
maven {
url 'https://cache-redirector.jetbrains.com/maven-central'
}
maven {
url kotlinCompilerRepo
}
+3 -1
View File
@@ -16,6 +16,8 @@
allprojects {
repositories {
mavenCentral()
maven {
url 'https://cache-redirector.jetbrains.com/maven-central'
}
}
}
+3 -1
View File
@@ -25,7 +25,9 @@ buildscript {
apply plugin: 'kotlin'
repositories {
mavenCentral()
maven {
url 'https://cache-redirector.jetbrains.com/maven-central'
}
}
dependencies {
+4 -2
View File
@@ -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 -1
View File
@@ -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
View File
@@ -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
+3 -1
View File
@@ -1,6 +1,8 @@
buildscript {
repositories {
mavenCentral()
maven {
url 'https://cache-redirector.jetbrains.com/maven-central'
}
maven {
url kotlinCompilerRepo
}
+3 -1
View File
@@ -9,7 +9,9 @@ apply plugin: 'konan'
buildscript {
repositories {
mavenCentral()
maven {
url 'https://cache-redirector.jetbrains.com/maven-central'
}
maven {
url kotlinCompilerRepo
}
+3 -1
View File
@@ -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 {
@@ -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 {