aboutsummaryrefslogtreecommitdiff
path: root/runners/gradle-plugin/src/main/kotlin/org/jetbrains
diff options
context:
space:
mode:
authorsebastian.sellmair <sebastian.sellmair@jetbrains.com>2020-06-03 11:13:02 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-06-04 23:49:37 +0200
commit435e34fe4d63b85ec8f93155153eda0ea2303d73 (patch)
treec465fa6dd4b3c61e78709f02929bb5eed1910b6d /runners/gradle-plugin/src/main/kotlin/org/jetbrains
parent6dc9498ca849645ecb4ec923bb7116b245dca706 (diff)
downloaddokka-435e34fe4d63b85ec8f93155153eda0ea2303d73.tar.gz
dokka-435e34fe4d63b85ec8f93155153eda0ea2303d73.tar.bz2
dokka-435e34fe4d63b85ec8f93155153eda0ea2303d73.zip
Implement Project.dokka extension to align kotlin and groovey dokka configuration
Diffstat (limited to 'runners/gradle-plugin/src/main/kotlin/org/jetbrains')
-rw-r--r--runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt8
1 files changed, 7 insertions, 1 deletions
diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt
index d72ec0f9..2de95493 100644
--- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt
+++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt
@@ -341,4 +341,10 @@ open class DokkaTask : DefaultTask(), Configurable {
null
}
}
-} \ No newline at end of file
+}
+
+fun Project.dokka(configuration: DokkaTask.() -> Unit) {
+ tasks.withType(DokkaTask::class.java) { dokkaTask ->
+ dokkaTask.configuration()
+ }
+}