Findbugs plugin ignores "ignoreFailures" setting


(Geert Premereur) #1

I migrated from milestone-8 to rc-1 and now my build breaks because the findbugs plugin ignores the setting of the ignoreFailure property (we have some timing tests and running with cobertura is much slower than plain junit).

After quite some fiddling with the source of the plugin, it appears this is due to line 119 in FindBugs.groovy:

if (findbugsResult.bugCount && !ignoreFailures) {

it should be

if (findbugsResult.bugCount && !getIgnoreFailures()) {

I’m no gradle expert, but it appears this property is now part of a convention object which requires different access than before???