aboutsummaryrefslogtreecommitdiff
path: root/runners/gradle-plugin/src/main/kotlin
diff options
context:
space:
mode:
authorsebastian.sellmair <sebastian.sellmair@jetbrains.com>2020-07-17 14:30:33 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-07-17 17:25:37 +0200
commit03aaa89d69524fc922f40cf215e5b39da06305cf (patch)
tree06cc3638788f3a6b695d9f47fc54d03250dea71f /runners/gradle-plugin/src/main/kotlin
parentc1cf73eb84cb73bd28972355c4c87db3ea7b236d (diff)
downloaddokka-03aaa89d69524fc922f40cf215e5b39da06305cf.tar.gz
dokka-03aaa89d69524fc922f40cf215e5b39da06305cf.tar.bz2
dokka-03aaa89d69524fc922f40cf215e5b39da06305cf.zip
Disable registration of default dokka collector tasks
Diffstat (limited to 'runners/gradle-plugin/src/main/kotlin')
-rw-r--r--runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/main.kt9
1 files changed, 1 insertions, 8 deletions
diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/main.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/main.kt
index e6ed363a..ff83fcef 100644
--- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/main.kt
+++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/main.kt
@@ -12,7 +12,6 @@ open class DokkaPlugin : Plugin<Project> {
project.setupDokkaTasks(
name = "dokkaJavadoc",
multimoduleTaskSupported = false,
- collectorTaskSupported = false
) {
plugins.dependencies.add(project.dokkaArtifacts.javadocPlugin)
}
@@ -27,13 +26,12 @@ open class DokkaPlugin : Plugin<Project> {
}
/**
- * Creates [DokkaTask], [DokkaMultimoduleTask] and [DokkaCollectorTask] for the given
+ * Creates [DokkaTask], [DokkaMultimoduleTask] for the given
* name and configuration.
*/
private fun Project.setupDokkaTasks(
name: String,
multimoduleTaskSupported: Boolean = true,
- collectorTaskSupported: Boolean = true,
configuration: AbstractDokkaTask.() -> Unit = {}
) {
project.maybeCreateDokkaPluginConfiguration(name)
@@ -52,11 +50,6 @@ open class DokkaPlugin : Plugin<Project> {
configuration()
}
}
- if (collectorTaskSupported) {
- project.tasks.register<DokkaCollectorTask>("${name}Collector") {
- dokkaTaskNames = dokkaTaskNames + name
- }
- }
}
}
}