aboutsummaryrefslogtreecommitdiff
path: root/mkdocs
diff options
context:
space:
mode:
authorGoooler <wangzongler@gmail.com>2023-03-08 10:43:08 +0800
committerGitHub <noreply@github.com>2023-03-08 03:43:08 +0100
commit14c05d70b52814fe48e930b3f61fed5e8586718c (patch)
tree3c5a6453a44ad6a499b44ac24761e5ee296fcb9b /mkdocs
parent62c980707d23d2d451c75330f7ed1ba613777cf3 (diff)
downloaddokka-14c05d70b52814fe48e930b3f61fed5e8586718c.tar.gz
dokka-14c05d70b52814fe48e930b3f61fed5e8586718c.tar.bz2
dokka-14c05d70b52814fe48e930b3f61fed5e8586718c.zip
Migrate kotlinOptions to compilerOptions (#2883)
More information: https://kotlinlang.org/docs/gradle-compiler-options.html#how-to-define-options
Diffstat (limited to 'mkdocs')
-rw-r--r--mkdocs/src/doc/docs/developer_guide/plugin-development/introduction.md8
1 files changed, 6 insertions, 2 deletions
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 "<kotlin_version>"
}
@@ -33,8 +37,8 @@ dependencies {
compileOnly("org.jetbrains.dokka:dokka-core:<dokka_version>")
}
-tasks.withType<KotlinCompile> {
- kotlinOptions.jvmTarget = "1.8"
+tasks.withType<KotlinCompile>().configureEach {
+ compilerOptions.jvmTarget.set(JvmTarget.JVM_1_8)
}
```