diff --git a/publish.gradle b/publish.gradle index 0271197d4..b67c886c1 100644 --- a/publish.gradle +++ b/publish.gradle @@ -81,6 +81,7 @@ publishing { // Signing var signingExtension = project.getExtensions().getByType(SigningExtension) as SigningExtension +signingExtension.sign publishing.publications.publishedArtifacts def signPublicationsTask = tasks.register('signPublications') { description "Grouping task which executes all Sign tasks" @@ -122,7 +123,6 @@ gradle.taskGraph.whenReady { TaskExecutionGraph graph -> var signingKey = resolveSigningKey() var signingPassword = resolveSigningPassphrase() signingExtension.useInMemoryPgpKeys( signingKey, signingPassword ) - signingExtension.sign publishing.publications.publishedArtifacts } else { // signing was not explicitly requested and we are not publishing to OSSRH,