From 14c05d70b52814fe48e930b3f61fed5e8586718c Mon Sep 17 00:00:00 2001 From: Goooler Date: Wed, 8 Mar 2023 10:43:08 +0800 Subject: Migrate kotlinOptions to compilerOptions (#2883) More information: https://kotlinlang.org/docs/gradle-compiler-options.html#how-to-define-options --- examples/plugin/hide-internal-api/build.gradle.kts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'examples/plugin/hide-internal-api') diff --git a/examples/plugin/hide-internal-api/build.gradle.kts b/examples/plugin/hide-internal-api/build.gradle.kts index 19b270d2..ed8169ad 100644 --- a/examples/plugin/hide-internal-api/build.gradle.kts +++ b/examples/plugin/hide-internal-api/build.gradle.kts @@ -1,3 +1,4 @@ +import org.jetbrains.kotlin.gradle.dsl.JvmTarget import org.jetbrains.kotlin.gradle.tasks.KotlinCompile import java.net.URI @@ -30,8 +31,8 @@ dependencies { val dokkaOutputDir = "$buildDir/dokka" tasks { - withType { - kotlinOptions.jvmTarget = "1.8" + withType().configureEach { + compilerOptions.jvmTarget.set(JvmTarget.JVM_1_8) } dokkaHtml { outputDirectory.set(file(dokkaOutputDir)) -- cgit