diff options
Diffstat (limited to 'examples/plugin/hide-internal-api/build.gradle.kts')
-rw-r--r-- | examples/plugin/hide-internal-api/build.gradle.kts | 5 |
1 files changed, 3 insertions, 2 deletions
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<KotlinCompile> { - kotlinOptions.jvmTarget = "1.8" + withType<KotlinCompile>().configureEach { + compilerOptions.jvmTarget.set(JvmTarget.JVM_1_8) } dokkaHtml { outputDirectory.set(file(dokkaOutputDir)) |