Per GRADLE-1818, and my own testing, the user’s System.in is passed to the daemon. While this supports the base use case, I would like to prompt for a password without displaying it on the screen. I’m currently using System.console() to do this, which works fine when not using the daemon, but returns null with the daemon. I am falling back to regular System.in in this case.
I’m not even sure if it’s possible for the daemon process to have access to System.console(). Is there anything that can be done in Gradle to support this?
Any alternative suggestions for secure user input would be welcome.