From ee81282410368e58d5b0bee23a938352b9d41b2d Mon Sep 17 00:00:00 2001 From: Matthew Haughton <3flex@users.noreply.github.com> Date: Fri, 20 May 2022 23:02:13 +1000 Subject: Remove unused `collectorTaskSupported` parameter (#2498) --- .../src/main/kotlin/org/jetbrains/dokka/gradle/main.kt | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'runners/gradle-plugin/src/main/kotlin/org') 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 8e306e4c..691d9f6d 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 @@ -44,7 +44,6 @@ open class DokkaPlugin : Plugin { name: String, multiModuleTaskSupported: Boolean = true, allModulesPageAndTemplateProcessing: Dependency = project.dokkaArtifacts.allModulesPage, - collectorTaskSupported: Boolean = true, configuration: AbstractDokkaTask.() -> Unit = {} ) { project.maybeCreateDokkaPluginConfiguration(name) @@ -81,12 +80,11 @@ open class DokkaPlugin : Plugin { } } } - if (collectorTaskSupported) { - project.tasks.register("${name}Collector") { - addSubprojectChildTasks(name) - description = - "Generates documentation merging all subprojects '$name' tasks into one virtual module" - } + + project.tasks.register("${name}Collector") { + addSubprojectChildTasks(name) + description = + "Generates documentation merging all subprojects '$name' tasks into one virtual module" } } } -- cgit