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