diff --git a/androidpublish.gradle b/androidpublish.gradle index b4ba0ab..aa5feee 100644 --- a/androidpublish.gradle +++ b/androidpublish.gradle @@ -53,7 +53,8 @@ uploadArchives { } signing { - required { isReleaseBuild() && gradle.taskGraph.hasTask("uploadArchives") } + useGpgCmd() + required { isReleaseBuild() } sign configurations.archives } diff --git a/publish.gradle b/publish.gradle index 9a4a0bf..98ef048 100644 --- a/publish.gradle +++ b/publish.gradle @@ -59,7 +59,8 @@ afterEvaluate { project -> } signing { - required { isReleaseBuild() && gradle.taskGraph.hasTask("uploadArchives") } + useGpgCmd() + required { isReleaseBuild() } sign configurations.archives }