Skip to content

Commit cc06577

Browse files
authored
Merge pull request #35 from orangain/compiler-options
Migrate kotlinOptions to compilerOptions
2 parents df660e6 + 585a35f commit cc06577

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.idea/kotlinc.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle.kts

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import cl.franciscosolis.sonatypecentralupload.SonatypeCentralUploadTask
2+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
23
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
34

45
plugins {
@@ -32,7 +33,9 @@ java {
3233
withJavadocJar()
3334
}
3435
tasks.withType<KotlinCompile> {
35-
kotlinOptions.jvmTarget = "1.8"
36+
compilerOptions {
37+
jvmTarget.set(JvmTarget.JVM_1_8)
38+
}
3639
}
3740

3841
publishing {

0 commit comments

Comments
 (0)