Skip to content

Commit

Permalink
Migrate from kotlinOptions to compilerOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
arhohuttunen committed Dec 9, 2024
1 parent 6f392dd commit 867c340
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import io.gitlab.arturbosch.detekt.DetektPlugin
import io.gitlab.arturbosch.detekt.extensions.DetektExtension
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
Expand All @@ -26,7 +27,9 @@ subprojects {

tasks {
withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
compilerOptions {
jvmTarget.set(JvmTarget.JVM_1_8)
}
}
withType<JavaCompile> {
sourceCompatibility = "1.8"
Expand Down

0 comments on commit 867c340

Please sign in to comment.