Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 30 lines (28 sloc) 1.343 kb
6afb015 Further decomposed build.gradle. Added maven, findbugs and gdoc.
hd authored
1 // To use findbugs you must have findbugs installed. Additionally you need a property called findbugsHome. You can define this
2 // in ~/.gradle/gradle.properties
3
0b0722b Lari Hotari Fixed findbugs task in gradle build
lhotari authored
4 task findbugs(dependsOn: install) << {
6afb015 Further decomposed build.gradle. Added maven, findbugs and gdoc.
hd authored
5 ant {
6 taskdef(name: "findbugs", classname: "edu.umd.cs.findbugs.anttask.FindBugsTask", classpath: "$findbugsHome/lib/findbugs-ant.jar")
7 mkdir dir: "$buildDir/findbugs-report"
8 findbugs(home: findbugsHome, output: "xml:withMessages", outputFile: "$buildDir/findbugs-report/grails-fb.xml", jvmargs: "-Xmx768M") {
9 auxClasspath() {
0b0722b Lari Hotari Fixed findbugs task in gradle build
lhotari authored
10 for(sub in subprojects) {
bb4890e whitespace, cleanup, STS warnings
Burt Beckwith authored
11 pathElement(path: sub.sourceSets.main.compileClasspath.asPath)
12 }
0b0722b Lari Hotari Fixed findbugs task in gradle build
lhotari authored
13 }
14 sourcePath() {
bb4890e whitespace, cleanup, STS warnings
Burt Beckwith authored
15 for (sub in subprojects) {
16 sub.sourceSets.main.groovy.srcDirs.each { srcDir ->
17 if (srcDir.exists()) {
18 pathElement(path: srcDir.absolutePath)
19 }
20 }
21 }
6afb015 Further decomposed build.gradle. Added maven, findbugs and gdoc.
hd authored
22 }
23 auxAnalyzepath() {
0b0722b Lari Hotari Fixed findbugs task in gradle build
lhotari authored
24 fileset dir: homeDistDir, includes: "grails-*.jar"
6afb015 Further decomposed build.gradle. Added maven, findbugs and gdoc.
hd authored
25 }
26 }
27 xslt(in: "$buildDir/findbugs-report/grails-fb.xml", out: "$buildDir/findbugs-report/grails-fb.html", style: "$findbugsHome/src/xsl/fancy.xsl")
28 }
29 }
Something went wrong with that request. Please try again.