I am trying to build a console based application but whenver I run
./gradlew run
I get thr progress bar which looks like this:
You can configure the Gradle log format using console
command line parameter, as described here : https://docs.gradle.org/current/userguide/command_line_interface.html#rich_console
Try with : ./gradlew run --console=plain
I know your question is specific to using the gradle wrapper, but if you're using the Gradle Tooling API, you can control the color output via
setColorOutput. Combined with the --quiet
argument (set via withArguments), this results in plain-text output.
Another way of doing this seems to be by setting the TERM
environment variable to dumb
.
Try TERM=dumb ./gradlew run