Skip to content

Commit f46bb8a

Browse files
authored
Fix gradle deprecation warning (#12907)
1 parent 202589f commit f46bb8a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

gradle-plugins/build.gradle.kts

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
23
import java.time.Duration
34

45
plugins {
@@ -60,9 +61,9 @@ tasks {
6061
}
6162
}
6263

63-
withType(KotlinCompile::class).configureEach {
64-
kotlinOptions {
65-
jvmTarget = "11"
64+
withType(KotlinJvmCompile::class).configureEach {
65+
compilerOptions {
66+
jvmTarget = JvmTarget.JVM_11
6667
}
6768
}
6869
}

0 commit comments

Comments
 (0)