Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: aether
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (28 sloc) 1.31 KB
// To use findbugs you must have findbugs installed. Additionally you need a property called findbugsHome. You can define this
// in ~/.gradle/
task findbugs(dependsOn: install) << {
ant {
taskdef(name: "findbugs", classname: "edu.umd.cs.findbugs.anttask.FindBugsTask", classpath: "$findbugsHome/lib/findbugs-ant.jar")
mkdir dir: "$buildDir/findbugs-report"
findbugs(home: findbugsHome, output: "xml:withMessages", outputFile: "$buildDir/findbugs-report/grails-fb.xml", jvmargs: "-Xmx768M") {
auxClasspath() {
for(sub in subprojects) {
pathElement(path: sub.sourceSets.main.compileClasspath.asPath)
sourcePath() {
for (sub in subprojects) {
sub.sourceSets.main.groovy.srcDirs.each { srcDir ->
if (srcDir.exists()) {
pathElement(path: srcDir.absolutePath)
auxAnalyzepath() {
fileset dir: homeDistDir, includes: "grails-*.jar"
xslt(in: "$buildDir/findbugs-report/grails-fb.xml", out: "$buildDir/findbugs-report/grails-fb.html", style: "$findbugsHome/src/xsl/fancy.xsl")
Jump to Line
Something went wrong with that request. Please try again.