Skip to content

Commit

Permalink
Fix gradle deprecation warning (#12907)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurit authored Dec 17, 2024
1 parent 202589f commit f46bb8a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions gradle-plugins/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
import java.time.Duration

plugins {
Expand Down Expand Up @@ -60,9 +61,9 @@ tasks {
}
}

withType(KotlinCompile::class).configureEach {
kotlinOptions {
jvmTarget = "11"
withType(KotlinJvmCompile::class).configureEach {
compilerOptions {
jvmTarget = JvmTarget.JVM_11
}
}
}
Expand Down

0 comments on commit f46bb8a

Please sign in to comment.