I just stumbled upon the same problem. I was able to solve it as follows:
apply plugin: 'findbugs' dependencies { // We need to manually set this first, or the plugin is not loaded findbugs 'com.google.code.findbugs:findbugs:3.0.0' findbugs configurations.findbugsPlugins.dependencies // To keep everything tidy, we set these apart findbugsPlugins 'com.mebigfatguy.fb-contrib:fb-contrib:6.0.0' } task findbugs(type: FindBugs) { // Add all your config here ... pluginClasspath = project.configurations.findbugsPlugins }
Hope this helps!
You can add Findbugs plugins by simply adding them depending on findbugsPlugins
Johnco
source share