Make all AbstractDokkaTask depend on generateReadme

This commit is contained in:
Iaroslav Postovalov 2021-08-07 09:43:11 +07:00
parent c227258e09
commit 4f49e24d61

View File

@ -11,7 +11,6 @@ import org.jetbrains.changelog.ChangelogPlugin
import org.jetbrains.changelog.ChangelogPluginExtension
import org.jetbrains.dokka.gradle.AbstractDokkaTask
import org.jetbrains.dokka.gradle.DokkaPlugin
import org.jetbrains.dokka.gradle.DokkaTask
import ru.mipt.npm.gradle.internal.*
private fun Project.allTasks(): Set<Task> = allprojects.flatMapTo(HashSet()) { it.tasks }
@ -131,7 +130,8 @@ open class KScienceProjectPlugin : Plugin<Project> {
}
}
}
tasks.withType<DokkaTask> {
tasks.withType<AbstractDokkaTask> {
dependsOn(generateReadme)
}
}