From 09e9950eae7ff30e9a6959b6b24a8777199208c4 Mon Sep 17 00:00:00 2001 From: Gregor Dschung Date: Wed, 12 Jan 2022 13:29:12 +0100 Subject: Fix wrong Groovy DSL example (#2302) 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(-) (limited to 'docs') diff --git a/docs/src/doc/docs/user_guide/gradle/usage.md b/docs/src/doc/docs/user_guide/gradle/usage.md index 5e2fea37..3570133c 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. -- cgit