e4da6c268a
^KT-22571 Fixed
37 lines
688 B
Groovy
Vendored
37 lines
688 B
Groovy
Vendored
apply plugin: "java"
|
|
apply plugin: "kotlin"
|
|
|
|
sourceCompatibility = 1.5
|
|
version = '1.0'
|
|
|
|
dependencies {
|
|
testCompile group: 'junit', name: 'junit', version: '4.11'
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
|
}
|
|
|
|
buildscript {
|
|
ext.kotlin_version = '$VERSION$'
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
}
|
|
}
|
|
sourceSets {
|
|
main.java.srcDirs += 'src/main/kotlin'
|
|
}
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
compileKotlin {
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
}
|
|
compileTestKotlin {
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
}
|