From 8d1d741625fd308f0d38f71ca5b1f529f8b37012 Mon Sep 17 00:00:00 2001 From: Nakul Sabharwal Date: Thu, 27 Sep 2018 12:05:45 +0530 Subject: [PATCH] enabling signing through enableSigning variable in local.properties --- build.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/build.gradle b/build.gradle index c70fc959893..a2d522d74f6 100644 --- a/build.gradle +++ b/build.gradle @@ -299,6 +299,7 @@ gradle.taskGraph.whenReady { taskGraph -> if (project.rootProject.file('local.properties').exists()) { Properties properties = new Properties() properties.load(project.rootProject.file('local.properties').newDataInputStream()) + tasks.withType(Sign)*.enabled = properties.getProperty('enableSigning').toBoolean() allprojects { ext."signing.keyId" = properties.getProperty('signing.keyId') } allprojects { ext."signing.secretKeyRingFile" = properties.getProperty('signing.secretKeyRingFile') } allprojects { ext."signing.password" = properties.getProperty('signing.password') }