I couldn’t figure this out myself, nor even find the appropriate Stack Overflow article on my own, so I’m writing this. I hope you find it and it alleviates your annoyed state. Is this you? I want to read input from stdin in my Java application. I want to run my application using gradle run. I’m learning the Kotlin build DSL for Gradle as a replacement for the Groovy build DSL, which I’m somewhat used to. Great! That’s me, too. The Problem By default, gradle run uses an empty input ...