How do I get rid of the Executing/Progress Bar when running a Gradle application?

后端 未结 3 1493
臣服心动
臣服心动 2021-01-17 16:45

I am trying to build a console based application but whenver I run

./gradlew run

I get thr progress bar which looks like this:

         


        
相关标签:
3条回答
  • 2021-01-17 17:07

    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

    0 讨论(0)
  • 2021-01-17 17:18

    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.

    0 讨论(0)
  • 2021-01-17 17:23

    Another way of doing this seems to be by setting the TERM environment variable to dumb.

    Try TERM=dumb ./gradlew run

    0 讨论(0)
提交回复
热议问题