I can't make Gradle show (highlighted) warnings that I emit from my build script using
logger.warn("something something")
The line is emitted plain, like any other log line, it does not have a WARN next to it, I was expecting some colour with --console=rich
, nothing.
Also, the warning is simply emitted at the respective place in the log.
I would like them emitted there but also at the end, or at least something at the end to indicate there were warnings. Supposedly --warning-mode=summary
is for this but doesn't have any effect.
I tried all possible combinations like:
gradle --warning-mode=summary build
gradle build --warning-mode=all
gradle build --warning-mode all
gradle build -Dorg.gradle.warning.mode=all --console=rich --info
etc
I tried gradle 5.2 and 5.4.1. No warnings!