Skip to content

Commit 8d1d741

Browse files
author
Nakul Sabharwal
committed
enabling signing through enableSigning variable in local.properties
1 parent c9d3330 commit 8d1d741

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ gradle.taskGraph.whenReady { taskGraph ->
299299
if (project.rootProject.file('local.properties').exists()) {
300300
Properties properties = new Properties()
301301
properties.load(project.rootProject.file('local.properties').newDataInputStream())
302+
tasks.withType(Sign)*.enabled = properties.getProperty('enableSigning').toBoolean()
302303
allprojects { ext."signing.keyId" = properties.getProperty('signing.keyId') }
303304
allprojects { ext."signing.secretKeyRingFile" = properties.getProperty('signing.secretKeyRingFile') }
304305
allprojects { ext."signing.password" = properties.getProperty('signing.password') }

0 commit comments

Comments
 (0)