Merge branch 'master' into 4.0.x (gradle)

This commit is contained in:
Andrew Grieve
2014-09-17 21:27:55 -04:00
3 changed files with 13 additions and 5 deletions
+6 -4
View File
@@ -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()
}
}
}