libyear-maven-plugin icon indicating copy to clipboard operation
libyear-maven-plugin copied to clipboard

Use coloured output

Open mfoo opened this issue 2 years ago • 1 comments
trafficstars

The plugin should support Maven's Batch Mode (no colours) and default to using colours if the output is a TTY.

As an example, the NodeJS libyear plugin output looks like this:

image

The intention is to highlight how outdated each package is when the Maven output is scrolling past.

mfoo avatar Jan 15 '23 12:01 mfoo

This is not so simple - Maven uses SLF4J which has no native support for colour. I may be able to add a different logger implementation to the classpath for the plugin invocation though and have SLF4J use that, not the default one.

mfoo avatar Jan 28 '23 17:01 mfoo