From a24f9a23a6d8759538e91072e8d96d158d03bb63 Mon Sep 17 00:00:00 2001 From: Ewen Cheslack-Postava Date: Mon, 9 Nov 2015 09:10:20 -0800 Subject: [PATCH] KAFKA-2781; Only require signing artifacts when uploading archives. Author: Ewen Cheslack-Postava Reviewers: Jun Rao Closes #461 from ewencp/kafka-2781-no-signing-for-install --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 49733c43ca197..4ea0ee3b1cd1b 100644 --- a/build.gradle +++ b/build.gradle @@ -51,7 +51,7 @@ ext { userMaxForks = project.hasProperty('maxParallelForks') ? maxParallelForks.toInteger() : null skipSigning = project.hasProperty('skipSigning') && skipSigning.toBoolean() - shouldSign = !skipSigning && !version.endsWith("SNAPSHOT") + shouldSign = !skipSigning && !version.endsWith("SNAPSHOT") && project.gradle.startParameter.taskNames.any { it.contains("upload") } mavenUrl = project.hasProperty('mavenUrl') ? project.mavenUrl : '' mavenUsername = project.hasProperty('mavenUsername') ? project.mavenUsername : ''