Along the lines of this answer (which works for me, BTW) and the javadocs, I tried
gradle.startParameter.consoleOutput = org.gradle.api.logging.configuration.ConsoleOutput.Rich
in my ~/.gradle/init.gradle
. However, I still need --console=rich
to get color output. Why?
Tested with Gradle 2.14.1 and 3.2.1.
Terminal is cygwin urxvt with TERM variable set to rxvt-unicode-256color.
Since Gradle 4.3 you can use org.gradle.console
property in gradle.properties
:
org.gradle.console=rich
A new console verbose mode will print outcomes of all tasks (like
UP-TO-DATE
) like Gradle 3.5 and earlier did. You can set this via--console=verbose
or by a new Gradle propertyorg.gradle.console=(plain rich verbose)
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With