From 1a92d5d3a68b67c3086fded362329cd3a24de8e6 Mon Sep 17 00:00:00 2001 From: Gregor Dschung Date: Tue, 11 Jan 2022 23:44:23 +0100 Subject: [PATCH] Fix wrong Groovy DSL example File#resolve(String) doen't exist in Groovy --- docs/src/doc/docs/user_guide/gradle/usage.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/src/doc/docs/user_guide/gradle/usage.md b/docs/src/doc/docs/user_guide/gradle/usage.md index 5e2fea37fe..3570133cdc 100644 --- a/docs/src/doc/docs/user_guide/gradle/usage.md +++ b/docs/src/doc/docs/user_guide/gradle/usage.md @@ -45,7 +45,7 @@ If you encounter any problems when migrating from older versions of Dokka, pleas Minimal configuration (with custom output directory only): -Kotlin +Kotlin DSL ```kotlin tasks.dokkaHtml.configure { outputDirectory.set(buildDir.resolve("dokka")) @@ -53,10 +53,10 @@ tasks.dokkaHtml.configure { ``` -Groovy -```kotlin -tasks.named("dokkaHtml") { - outputDirectory.set(buildDir.resolve("dokka")) +Groovy DSL +```groovy +dokkaHtml { + outputDirectory.set(file("${buildDir}/dokka")) } ``` @@ -370,4 +370,4 @@ tasks.dokkaHtmlPartial.configure { Please see the [Dokka Gradle single module example project](https://github.com/Kotlin/dokka/tree/master/examples/gradle/dokka-gradle-example) or [multimodule](https://github.com/Kotlin/dokka/tree/master/examples/gradle/dokka-multimodule-example) for an example. -Also see [generated documentation](https://Kotlin.github.io/dokka/examples/dokka-gradle-example/html) in `HTML` format. \ No newline at end of file +Also see [generated documentation](https://Kotlin.github.io/dokka/examples/dokka-gradle-example/html) in `HTML` format.