I am writing a console application with Java and gradle. I am using the application plugin and have the required fields correctly configured in build.gradle.
build.gradle
Per default the system.in of your gradle build is not wired up with the system.in of the run (JavaExec) task. You can do the following:
run{ standardInput = System.in }