How do I print to the stdout when a gradle build runs?

Viewed 287

Gradle has a separate logging from java (eg. slf4j), but I am wondering if I can get my java code (within a unit test) to print out messages that will be part of the gradle output.

The usual System.out.println(...) and log.debug(...) do not work. How can one set this up?

0 Answers
Related