From 3ac74a4e2c72677ef7c85df77922c645c7cce598 Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Wed, 13 Apr 2016 11:37:56 -0700 Subject: [PATCH] GEODE-1213: Enable signing archives on geode-assembly The disableMavenPublishing task was used on both geode-modules-assembly and geode-assembly. But geode-assembly does have archives that need to be signed, so we should not disable signing for this module. Adding a separate disableSigning method to disable signing, which is used only in the geode-modules-assembly. --- extensions/geode-modules-assembly/build.gradle | 1 + gradle/utilities.gradle | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/extensions/geode-modules-assembly/build.gradle b/extensions/geode-modules-assembly/build.gradle index fe01717aade9..960d9242001d 100644 --- a/extensions/geode-modules-assembly/build.gradle +++ b/extensions/geode-modules-assembly/build.gradle @@ -38,6 +38,7 @@ extraArchive { } disableMavenPublishing() +disableSigning() def getJarArtifact(module) { project(module).configurations.archives.artifacts.findAll { diff --git a/gradle/utilities.gradle b/gradle/utilities.gradle index fa7783985ecc..5f597f69e2b1 100644 --- a/gradle/utilities.gradle +++ b/gradle/utilities.gradle @@ -33,6 +33,11 @@ allprojects { afterEvaluate { install.enabled = false uploadArchives.enabled = false + } + } + disableSigning = { + // Use this closure when a project should not publish anything to maven. + afterEvaluate { signArchives.enabled = false } }