From ca909f161ea17bc479f267c4865a77a42fb304b4 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sat, 9 Dec 2023 15:39:11 +0600 Subject: [PATCH] one more potential ix of publishing scripts --- jvm.publish.gradle | 6 +++--- publish.gradle | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/jvm.publish.gradle b/jvm.publish.gradle index 56080e5392e..62429fbde11 100644 --- a/jvm.publish.gradle +++ b/jvm.publish.gradle @@ -115,7 +115,7 @@ if (project.hasProperty("signing.gnupg.keyName")) { // Workaround to make android sign operations depend on signing tasks project.getTasks().withType(AbstractPublishToMaven.class).configureEach { def signingTasks = project.getTasks().withType(Sign.class) - mustRunAfter(signingTasks) + shouldRunAfter(signingTasks) } // Workaround to make test tasks use sign project.getTasks().withType(Sign.class).configureEach { signTask -> @@ -126,12 +126,12 @@ if (project.hasProperty("signing.gnupg.keyName")) { // Task ':linkDebugTest' uses this output of task ':signPublication' without declaring an explicit or implicit dependency def debugTestTask = tasks.findByName("linkDebugTest$pubName") if (debugTestTask != null) { - signTask.mustRunAfter(debugTestTask) + signTask.shouldRunAfter(debugTestTask) } // Task ':compileTestKotlin' uses this output of task ':signPublication' without declaring an explicit or implicit dependency def testTask = tasks.findByName("compileTestKotlin$pubName") if (testTask != null) { - signTask.mustRunAfter(testTask) + signTask.shouldRunAfter(testTask) } } } diff --git a/publish.gradle b/publish.gradle index 740b6a4542f..16a4315fb64 100644 --- a/publish.gradle +++ b/publish.gradle @@ -103,7 +103,7 @@ if (project.hasProperty("signing.gnupg.keyName")) { // Workaround to make android sign operations depend on signing tasks project.getTasks().withType(AbstractPublishToMaven.class).configureEach { def signingTasks = project.getTasks().withType(Sign.class) - mustRunAfter(signingTasks) + shouldRunAfter(signingTasks) } // Workaround to make test tasks use sign project.getTasks().withType(Sign.class).configureEach { signTask -> @@ -114,12 +114,12 @@ if (project.hasProperty("signing.gnupg.keyName")) { // Task ':linkDebugTest' uses this output of task ':signPublication' without declaring an explicit or implicit dependency def debugTestTask = tasks.findByName("linkDebugTest$pubName") if (debugTestTask != null) { - signTask.mustRunAfter(debugTestTask) + signTask.shouldRunAfter(debugTestTask) } // Task ':compileTestKotlin' uses this output of task ':signPublication' without declaring an explicit or implicit dependency def testTask = tasks.findByName("compileTestKotlin$pubName") if (testTask != null) { - signTask.mustRunAfter(testTask) + signTask.shouldRunAfter(testTask) } } }