aboutsummaryrefslogtreecommitdiff
path: root/mkdocs
diff options
context:
space:
mode:
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)
}
```