title: How to write a customized gradle task to not to ignore Findbugs violations but fail after the analysis is completed
body: <p>I want to write such a gradle task (using the <em>Findbugs</em> plugin) which fails if any <em>Findbugs</em> violations are found <strong>but only after completing the analysis</strong>. If I do <code>ignoreFailures=true</code> the task won't fail at all and if I make it false the task fails as soon as the first issue is found. I want the task to perform a complete analysis and fail only after it's done if any violations are found.</p>