CB-7512 Fix gradle asking for release password when building for debug
Project: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/commit/3add1138 Tree: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/tree/3add1138 Diff: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/diff/3add1138 Branch: refs/heads/master Commit: 3add1138faec0da44c3447ae6f1ec118a8d8065e Parents: 3f2397a Author: Andrew Grieve <[email protected]> Authored: Wed Sep 17 21:27:06 2014 -0400 Committer: Prabhjot Singh <[email protected]> Committed: Mon Oct 6 16:01:35 2014 +0530 ---------------------------------------------------------------------- bin/templates/project/build.gradle | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/blob/3add1138/bin/templates/project/build.gradle ---------------------------------------------------------------------- diff --git a/bin/templates/project/build.gradle b/bin/templates/project/build.gradle index b6994b6..6de8c54 100644 --- a/bin/templates/project/build.gradle +++ b/bin/templates/project/build.gradle @@ -140,7 +140,7 @@ def promptForPassword(msg) { } } -task promptForReleaseKeyPassword { +def promptForReleaseKeyPassword() { if (!System.env.RELEASE_SIGNING_PROPERTIES_FILE) { return; } @@ -153,9 +153,11 @@ task promptForReleaseKeyPassword { } } -tasks.whenTaskAdded { task -> - if (task.name == 'validateReleaseSigning') { - task.dependsOn promptForReleaseKeyPassword +gradle.taskGraph.whenReady { taskGraph -> + taskGraph.getAllTasks().each() { task -> + if (task.name == 'validateReleaseSigning') { + promptForReleaseKeyPassword() + } } } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
