CB-7512 Fix gradle asking for release password when building for debug

This commit is contained in:
Andrew Grieve 2014-09-17 21:27:06 -04:00
parent 949152532c
commit 3f83fdbfc1

View File

@ -140,7 +140,7 @@ def promptForPassword(msg) {
} }
} }
task promptForReleaseKeyPassword { def promptForReleaseKeyPassword() {
if (!System.env.RELEASE_SIGNING_PROPERTIES_FILE) { if (!System.env.RELEASE_SIGNING_PROPERTIES_FILE) {
return; return;
} }
@ -153,9 +153,11 @@ task promptForReleaseKeyPassword {
} }
} }
tasks.whenTaskAdded { task -> gradle.taskGraph.whenReady { taskGraph ->
if (task.name == 'validateReleaseSigning') { taskGraph.getAllTasks().each() { task ->
task.dependsOn promptForReleaseKeyPassword if (task.name == 'validateReleaseSigning') {
promptForReleaseKeyPassword()
}
} }
} }