2

The quite standard question about gradle is how to make it possible to redirect output from launched process, to which the standard answer is to configure your tests like this:

test {
    testLogging.showStandardStreams = true
}

What I do miss in this answer - is how to print to the stdout/stderr when it's not about tests but about any arbitrary gradle task launched. In other words, I want to be able to see the standard output of any process called by gradle.

shabunc
  • 23,119
  • 19
  • 77
  • 102
  • That should already happen by default as Gradle redirects standard output to the QUIET log level and standard error to the ERROR level. With no logging options, you are running Gradle at the LIFECYCLE level, which includes the former. Can you give an example where that is not the case? – Bjørn Vester Nov 05 '20 at 15:44

0 Answers0