diff --git a/build.gradle b/build.gradle index 6d1cceb7f..e37ec8ead 100644 --- a/build.gradle +++ b/build.gradle @@ -191,7 +191,7 @@ gradle.taskGraph.whenReady { taskGraph -> if (signingRequired && taskGraph.allTasks.any { it instanceof Sign }) { // Use Java 6's console to read from the console (no good for a CI environment) - Console console = System.console() + def console = System.console() console.printf '\n\nWe have to sign some things in this build.\n\nPlease enter your signing details.\n\n' def password = console.readPassword('GnuPG Private Key Password: ')