Skip to content

Instantly share code, notes, and snippets.

@alpargabos
Created August 24, 2016 10:45
Show Gist options
  • Save alpargabos/d0eed926bc434ef773f0aa1108ba96f9 to your computer and use it in GitHub Desktop.
Save alpargabos/d0eed926bc434ef773f0aa1108ba96f9 to your computer and use it in GitHub Desktop.
findbugs gradle
apply plugin: 'findbugs'
dependencies {
findbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.4.2'
}
// Add findbugs to the check task.
check.dependsOn 'findbugs'
task findbugs(type: FindBugs, dependsOn: assembleDebug ) {
ignoreFailures = false
effort = "max"
reportLevel = "medium"
excludeFilter = file("${project.rootDir}/config/quality/findbugs/findbugs-filter.xml")
classes = files("${project.buildDir}/intermediates/classes/debug/com/prezi/android")
source 'src'
include '**/*.java'
exclude '**/gen/**'
reports {
html.enabled = false
html {
destination "${project.buildDir}/reports/findbugs/findbugs.html"
}
}
classpath = files()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment