From 2c76df9b5e07a1e811259dcf28b3cecadca0f486 Mon Sep 17 00:00:00 2001 From: Puneet Behl Date: Thu, 16 Feb 2023 08:11:27 +0530 Subject: [PATCH] Fix Gradle Signing Plugin Configuration --- plugin/build.gradle | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/plugin/build.gradle b/plugin/build.gradle index 178dee8..2a1937d 100644 --- a/plugin/build.gradle +++ b/plugin/build.gradle @@ -134,9 +134,11 @@ publishing { } } -afterEvaluate { - signing { - required { isReleaseVersion && (gradle.taskGraph.hasTask("publish") || gradle.taskGraph.hasTask("publishMavenPublicationToMavenLocal")) } - sign publishing.publications.maven +if (isReleaseVersion) { + afterEvaluate { + signing { + required { gradle.taskGraph.hasTask("publish") || gradle.taskGraph.hasTask("publishMavenPublicationToMavenLocal") } + sign publishing.publications.maven + } } }