I’m using System.console.readPassword in a gradle to get credentials for the uploadArchives task, which we obviously don’t want to store in a file on disk. This works perfectly in OSX, Windows, and Linux environments, but does not work under Cygwin. I get “Cannot invoke method readLine() on null object”. I think the issue is that System.console returns null under Cygwin. I’m using Gradle version 1.0, and I am not using the daemon.