Findbugs plugin: using custom libraries

The maven findbugs plugin allows a developer to use custom findbugs extensions and libraries to find checks.

Example of such a plugin:

How is one supposed to do the same with the gradle plugin?

Add the plugin dependencies to the ‘findbugsPlugins’ configuration.

dependencies {
    findbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.4.4'
}

Thanks for the confirmation. Seems like this matches my existing configuration. What I do find strange is that Maven findbugs plugin seems to catch a lot more errors than the gradle equivalent. I’ll look into this more, but I am not sure the plugins are actually doing what they are supposed to for gradle.