I know that some questions have been asked about how to hook into gradle’s color output – but I have not yet seen a question/answer about how to simply detect gradle’s color settings.
I have a test listener that outputs test results more concisely than the built in gradle test events do (it was originally a test listener for testng). I’m trying to get this listener to hook into gradle’s “–no-color” option rather than inventing a new -Dcolor=false system property to turn off color.
Is there a way to do this? Thanks.