Created
August 24, 2016 10:45
-
-
Save alpargabos/d0eed926bc434ef773f0aa1108ba96f9 to your computer and use it in GitHub Desktop.
findbugs gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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