title: How to configure a custom findbugs task in gradle with a different pluginClasspath
body: <p>I tried to set up a custom findbugs task with gradle which will have a different pluginClasspath than the default ones.</p>
  
  <p>So the default tasks should use the default FindBugs rules while the custom one should use the findbugs-security rules. My configuration looks like this:</p>
  
  <pre><code>dependencies {
    findbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.4.4'
  }
  
  findbugs {
    // general config
  }
  
  task findbugsSecurity(type: FindBugs, dependsOn: classes) {
    classes = fileTree(project.sourceSets.main.output.classesDir)
    source = project.sourceSets.main.java.srcDirs
    classpath = files()
  
    pluginClasspath = files(configurations.findbugsPlugins.asPath)
  }
  </code></pre>
  
  <p>However, if I run the findbugsMain task now, it also includes the checks from findbugs-security!</p>
  
  <p>How can I configure it so that findbugs-security checks are only used in the custom task?</p>