aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGregor Dschung <gregor@chkpnt.de>2022-01-12 13:29:12 +0100
committerGitHub <noreply@github.com>2022-01-12 15:29:12 +0300
commit09e9950eae7ff30e9a6959b6b24a8777199208c4 (patch)
treeaebbf2a1802d1287a1e8f4b3a6d7b2b27120228d /docs
parentb8ffe63577fb79725f9552823c813dc55650ebff (diff)
downloaddokka-09e9950eae7ff30e9a6959b6b24a8777199208c4.tar.gz
dokka-09e9950eae7ff30e9a6959b6b24a8777199208c4.tar.bz2
dokka-09e9950eae7ff30e9a6959b6b24a8777199208c4.zip
Fix wrong Groovy DSL example (#2302)
File#resolve(String) doen't exist in Groovy
Diffstat (limited to 'docs')
-rw-r--r--docs/src/doc/docs/user_guide/gradle/usage.md12
1 files 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 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.