Skip to content

Instantly share code, notes, and snippets.

@toidv
Created November 19, 2018 04:39
apply plugin: 'findbugs'
dependencies {
findbugs "com.google.code.findbugs:findbugs:$FINDBUGS_VERSION"
}
task findbugs(type: FindBugs) {
classes = fileTree("$buildDir/tmp/kotlin-classes")
source = fileTree('src/main/java')
classpath = files()
findbugs {
toolVersion = "$FINDBUGS_VERSION"
sourceSets = [android.sourceSets]
ignoreFailures = true
effort = "max"
reportLevel = "low"
excludeFilter = file("$project.rootDir/gradle/findbugs-android-exclude.xml")
}
reports {
xml.enabled = true
html.enabled = false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment