build: Store kotlin-compiler repo URL in a project property

This commit is contained in:
Ilya Matveev
2017-05-02 17:00:00 +07:00
committed by ilmat192
parent 3f0a273a11
commit fe5badee34
5 changed files with 23 additions and 30 deletions
+17 -21
View File
@@ -1,3 +1,19 @@
/*
* Copyright 2010-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
buildscript {
repositories {
mavenCentral()
@@ -16,30 +32,10 @@ apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: org.jetbrains.kotlin.NativeInteropPlugin
/*
* Copyright 2010-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// (gets applied to this project and all its subprojects)
allprojects {
repositories {
//maven { url 'http://dl.bintray.com/jetbrains/kotlin-native-dependencies' }
//maven { url 'http://oss.sonatype.org/content/repositories/snapshots' }
maven { url 'http://dl.bintray.com/kotlin/kotlin-dev' }
maven { url kotlinCompilerRepo }
}
configurations.all {
+1 -3
View File
@@ -35,9 +35,7 @@ configurations {
// TODO: Check if we really need the our bintray mirror and delete the uploading code below if we don't.
repositories {
//maven { url 'http://dl.bintray.com/jetbrains/kotlin-native-dependencies' }
//maven { url 'http://oss.sonatype.org/content/repositories/snapshots' }
maven { url 'http://dl.bintray.com/kotlin/kotlin-dev' }
maven { url kotlinCompilerRepo }
}
dependencies {
+3
View File
@@ -21,5 +21,8 @@ remoteRoot=konan_tests
#kotlinCompilerModule=org.jetbrains.kotlin:kotlin-compiler:1.1-SNAPSHOT
# Download artifacts of https://teamcity.jetbrains.com/viewType.html?buildTypeId=bt345
testDataVersion=1053418:id
#kotlinCompilerRepo=http://dl.bintray.com/jetbrains/kotlin-native-dependencies
#kotlinCompilerRepo=http://oss.sonatype.org/content/repositories/snapshots
kotlinCompilerRepo=http://dl.bintray.com/kotlin/kotlin-dev
kotlinCompilerModule=org.jetbrains.kotlin:kotlin-compiler:1.1.3-dev-1619
konanVersion=0.1
+1 -3
View File
@@ -24,9 +24,7 @@ apply plugin: 'com.jfrog.bintray'
// Copied from backend.native
allprojects {
repositories {
//maven { url 'http://dl.bintray.com/jetbrains/kotlin-native-dependencies' }
//maven { url 'http://oss.sonatype.org/content/repositories/snapshots' }
maven { url 'http://dl.bintray.com/kotlin/kotlin-dev' }
maven { url kotlinCompilerRepo }
}
configurations.all {
+1 -3
View File
@@ -33,9 +33,7 @@ buildscript {
// Copied from backend.native project. =====
repositories {
//maven { url 'http://dl.bintray.com/jetbrains/kotlin-native-dependencies' }
//maven { url 'http://oss.sonatype.org/content/repositories/snapshots' }
maven { url 'http://dl.bintray.com/kotlin/kotlin-dev' }
maven { url kotlinCompilerRepo }
}
configurations.all {