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) } } }