[JAVA] Do not accept System.in in gradle run

A memo when standard input is not accepted when writing a program that processes based on standard input in java and building with gradle.

Add the following to build.gradle.

build.gradle


run {
    standardInput = System.in
}

Recommended Posts

Do not accept System.in in gradle run
How to run Ant in Gradle
[Java] Do not use "+" in append!
Do not use instance variables in partial
.sql file does not run in docker-compose
Do not return when memoizing in Ruby
Do not declare variables in List in Java
Run modular project tests in Gradle (JUnit5 + TestFX)
Do not write if (isAdmin == true) code in Java
Do not write 〇〇 logic in Rails View (* added later)
In Ruby, methods with? Do not always return true/false.
Jigsaw notes in Gradle
Run raw sql in Hanami to get results not in columns
[Development log ⑬] Do not let 0 be entered in the form !!