Don't force configure with kotlin-jdk artifacts for early versions (KT-21028)

#KT-21028 Fixed
This commit is contained in:
Nikolay Krasko
2017-11-14 18:46:22 +03:00
parent 679a460c44
commit 3a90f3618a
8 changed files with 128 additions and 3 deletions
@@ -0,0 +1,28 @@
// VERSION: $VERSION$
buildscript {
ext.kotlin_version = '$VERSION$'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'kotlin'
repositories {
mavenCentral()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
// JDK: 1.8
@@ -0,0 +1,2 @@
// VERSION: 1.1.60
// JDK: 1.8
@@ -36,7 +36,7 @@ repositories {
dependencies {
testCompile("junit:junit:4.12")
compile(kotlinModule("stdlib-jdk8", kotlin_version))
compile(kotlinModule("stdlib-jre8", kotlin_version))
}
// VERSION: $VERSION$