diff --git a/spotbugs/build.gradle b/spotbugs/build.gradle index a2cb775b89b..ba2ced63382 100644 --- a/spotbugs/build.gradle +++ b/spotbugs/build.gradle @@ -1,3 +1,4 @@ +apply plugin: 'findbugs' apply from: "$rootDir/gradle/jacoco.gradle" apply from: "$rootDir/gradle/maven.gradle" @@ -49,6 +50,14 @@ dependencies { compile fileTree(dir: 'lib', include: '*.jar') } +findbugs { + effort = "max" + reportLevel = "high" + dependencies { + findbugs 'com.google.code.findbugs:findbugs:3.0.1' + } +} + clean { delete ".libs" } @@ -108,7 +117,7 @@ task updateManifest { // Manually define what goes into the default jar, since it's not only main sourceset jar { from sourceSets.main.output - + // Workaround for missing released BCEL maven artifact, see https://github.com/spotbugs/spotbugs/issues/327 // Should be removed after #327 is fixed. from zipTree("$projectDir/lib/bcel-6.1-20161207.023659-9.jar").matching {