From 2dafda4d0d95121483a68d176d3fa7fed4e8eb5b Mon Sep 17 00:00:00 2001 From: Alejandro Serrano Date: Wed, 15 Mar 2023 11:44:59 +0100 Subject: [PATCH] Fix publication workflow, again (#1068) --- build.gradle.kts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 763956463..dfe671c41 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -31,8 +31,17 @@ tasks { } } +// declare Dokka implicit dependencies +val libNames = listOf("arrow-meta", "arrow-meta-test", "arrow-gradle-plugin-commons") task("docsJar") { - dependsOn(tasks.getByPath(":arrow-gradle-plugin-commons:dokkaHtml")) + libNames.forEach { + dependsOn(tasks.getByPath(":${it}:dokkaHtml")) + } +} +libNames.forEach { task -> + libNames.forEach { + tasks.getByPath(":${task}:docsJar").dependsOn(":${it}:dokkaHtml") + } } allprojects {