Configure kotlin.stdlib for gradle projects (KT-19207)

#KT-19207 Fixed
This commit is contained in:
Nikolay Krasko
2017-10-03 16:08:37 +03:00
parent 023067aaf2
commit 6664b7759b
9 changed files with 154 additions and 27 deletions
@@ -0,0 +1,33 @@
apply plugin: 'java'
apply plugin: 'kotlin'
sourceCompatibility = 1.9
version = '1.0'
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
}
buildscript {
ext.kotlin_version = '$VERSION$'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
@@ -0,0 +1,12 @@
apply plugin: 'java'
sourceCompatibility = 1.9
version = '1.0'
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
}
@@ -0,0 +1,3 @@
module TestModule {
}
@@ -0,0 +1,4 @@
module TestModule {
requires kotlin.stdlib;
}