How can I configure Gradle to fail build at the end (not fail fast) if there is anything printed on standard error output by any task or plugin?
I haven't found a way to do it in the official API.
How can I configure Gradle to fail build at the end (not fail fast) if there is anything printed on standard error output by any task or plugin?
I haven't found a way to do it in the official API.
Here’s a sample
build.gradle
that shows how this can work:The examples in the second half are only there to show that it works as expected. Try the build with various command line args/options: