Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 19859

Exception in thread "main" java.util.NoSuchElementException

$
0
0

I though it would make the System.in available to any JavaExec task specified in the build.gradle when build.gradle is executed. I guess not though.

Accually you can :smile:. I’m using gradle 6.5.1 and I added this to my gradle.build

run {
    standardInput(System.in)
}

For me it was also stuck at 80% but it turned out it’s because it was waiting for me to type the input.


Viewing all articles
Browse latest Browse all 19859

Trending Articles