title: Gradlew on Windows - System.console() is null
body: <h3>I want to use <code>System.console()</code> in my <code>build.gradle</code> to let the user enters the password for the keystore.</h3>
  <p>But then i execute</p>
  <pre><code>gradlew assembleRelease --no-daemon
  </code></pre>
  <p>i always get</p>
  <pre><code>Cannot invoke method readPassword() on null object
  </code></pre>
  <p>How can i request user input for gradlew on windows?</p>
  <p><em><strong>I searched a lot on google and stack overflow but nothing works.</strong></em></p>