28 lines
778 B
Groovy
28 lines
778 B
Groovy
apply plugin: "java-library"
|
|
apply plugin: "kotlin"
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
compileKotlin {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
kotlinOptions {
|
|
jvmTarget = jvm_target
|
|
freeCompilerArgs += [
|
|
"-opt-in=kotlin.ExperimentalStdlibApi",
|
|
]
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: "libs", include: ["*.jar"])
|
|
//noinspection DifferentStdlibGradleVersion
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
|
|
testImplementation "junit:junit:$junit_version"
|
|
testImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
|
|
}
|