From 2151dcc771b9bfed15550c0389da3f250bf2d185 Mon Sep 17 00:00:00 2001 From: mvicsokolova <82594708+mvicsokolova@users.noreply.github.com> Date: Mon, 14 Aug 2023 14:06:45 +0200 Subject: [PATCH] Update of Gradle Version to 8.1 revealed the problem that publish task uses the output of sign task as an error. This commit sets the explicit dependency between Publish and Sign tasks. (#335) --- gradle/publishing.gradle | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gradle/publishing.gradle b/gradle/publishing.gradle index 8b7d8f97..bba92e09 100644 --- a/gradle/publishing.gradle +++ b/gradle/publishing.gradle @@ -30,7 +30,7 @@ publishing { repositories { // this: closure PublishingKt.configureMavenPublication(delegate, project) } - + if (!isMultiplatform) { // Configure java publications for non-MPP projects publications { @@ -61,4 +61,8 @@ publishing { it.artifact(javadocJar) } } + + tasks.withType(PublishToMavenRepository).configureEach { + dependsOn(tasks.withType(Sign)) + } }