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 --- .../doc/docs/developer_guide/plugin-development/introduction.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'mkdocs/src/doc/docs') diff --git a/mkdocs/src/doc/docs/developer_guide/plugin-development/introduction.md b/mkdocs/src/doc/docs/developer_guide/plugin-development/introduction.md index 6a487a5e..ad980e49 100644 --- a/mkdocs/src/doc/docs/developer_guide/plugin-development/introduction.md +++ b/mkdocs/src/doc/docs/developer_guide/plugin-development/introduction.md @@ -25,6 +25,10 @@ It has pre-configured dependencies, publishing and signing of your artifacts. At a bare minimum, Dokka requires `Kotlin Gradle Plugin` and `dokka-core` dependencies: ```kotlin +import org.jetbrains.kotlin.gradle.dsl.JvmTarget +import org.jetbrains.kotlin.gradle.tasks.KotlinCompile + + plugins { kotlin("jvm") version "" } @@ -33,8 +37,8 @@ dependencies { compileOnly("org.jetbrains.dokka:dokka-core:") } -tasks.withType { - kotlinOptions.jvmTarget = "1.8" +tasks.withType().configureEach { + compilerOptions.jvmTarget.set(JvmTarget.JVM_1_8) } ``` -- cgit