From 7242fcc87ef4dcfd57c0ed55db76ce4273c6dde6 Mon Sep 17 00:00:00 2001 From: Kun Zhang Date: Fri, 6 Nov 2015 09:58:33 -0800 Subject: [PATCH] Disable signing when uploading to Gradle plugins portal --- build.gradle | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index 328ce68f..8566e58e 100644 --- a/build.gradle +++ b/build.gradle @@ -94,11 +94,12 @@ artifacts { archives javadocJar } -signing { - required { isReleaseVersion && - gradle.taskGraph.hasTask("uploadArchives") && - !gradle.taskGraph.hasTask("publishPlugins")} - sign configurations.archives +// The Gradle plugin portal doesn't allow signature files. +if (!gradle.startParameter.taskNames.intersect(['publishPlugins'])) { + signing { + required { isReleaseVersion } + sign configurations.archives + } } targetCompatibility = 1.6