From 2d508e966416ffdc94a4d945ef3f4705f4676de5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Garc=C3=ADa?= Date: Fri, 12 Apr 2024 09:08:13 +0200 Subject: [PATCH] fix: Apply workaround to signing multiplatform projects (#57) --- .../src/main/kotlin/maven-publish-conventions.gradle.kts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/buildSrc/src/main/kotlin/maven-publish-conventions.gradle.kts b/buildSrc/src/main/kotlin/maven-publish-conventions.gradle.kts index 1c62a20..8e1ff1a 100644 --- a/buildSrc/src/main/kotlin/maven-publish-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/maven-publish-conventions.gradle.kts @@ -70,3 +70,10 @@ signing { useInMemoryPgpKeys(signingPrivateKey, signingPassword) sign(publishing.publications) } + +// Fix Gradle warning about signing tasks using publishing task outputs without explicit dependencies +// https://github.com/gradle/gradle/issues/26091 +tasks.withType().configureEach { + val signingTasks = tasks.withType() + mustRunAfter(signingTasks) +}