From 03aaa89d69524fc922f40cf215e5b39da06305cf Mon Sep 17 00:00:00 2001 From: "sebastian.sellmair" Date: Fri, 17 Jul 2020 14:30:33 +0200 Subject: Disable registration of default dokka collector tasks --- .../src/main/kotlin/org/jetbrains/dokka/gradle/main.kt | 9 +-------- 1 file changed, 1 insertion(+), 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.setupDokkaTasks( name = "dokkaJavadoc", multimoduleTaskSupported = false, - collectorTaskSupported = false ) { plugins.dependencies.add(project.dokkaArtifacts.javadocPlugin) } @@ -27,13 +26,12 @@ open class DokkaPlugin : Plugin { } /** - * 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 { configuration() } } - if (collectorTaskSupported) { - project.tasks.register("${name}Collector") { - dokkaTaskNames = dokkaTaskNames + name - } - } } } } -- cgit