From 4f49e24d61a721fb802b60fbcffd71a150fc7c80 Mon Sep 17 00:00:00 2001 From: Iaroslav Postovalov Date: Sat, 7 Aug 2021 09:43:11 +0700 Subject: [PATCH] Make all AbstractDokkaTask depend on generateReadme --- src/main/kotlin/ru/mipt/npm/gradle/KScienceProjectPlugin.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/ru/mipt/npm/gradle/KScienceProjectPlugin.kt b/src/main/kotlin/ru/mipt/npm/gradle/KScienceProjectPlugin.kt index 70568f3..26cfc32 100644 --- a/src/main/kotlin/ru/mipt/npm/gradle/KScienceProjectPlugin.kt +++ b/src/main/kotlin/ru/mipt/npm/gradle/KScienceProjectPlugin.kt @@ -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 = allprojects.flatMapTo(HashSet()) { it.tasks } @@ -131,7 +130,8 @@ open class KScienceProjectPlugin : Plugin { } } } - tasks.withType { + + tasks.withType { dependsOn(generateReadme) } }