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
For build.gradle.kts:
build.gradle.kts
tasks.getByName("run") { standardInput = System.`in` }