diff --git a/publish.gradle b/publish.gradle index bed3893..9e31278 100644 --- a/publish.gradle +++ b/publish.gradle @@ -84,4 +84,10 @@ if (project.hasProperty("signing.gnupg.keyName")) { dependsOn(it) } } + + // 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) + } }