I am trying to use the FindBugs plugin for Gradle with an Android build.
The build.gradle
file
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.6.+'
}
}
apply plugin: 'android'
apply plugin: 'findbugs'
android {
compileSdkVersion 19
buildToolsVersion "19.0.0"
defaultConfig {
minSdkVersion 8
targetSdkVersion 19
}
}
dependencies {
compile 'com.android.support:appcompat-v7:+'
}
But when I execute the check
task it says
No classes configured for FindBugs analysis.
How do I configure classes for FindBugs analysis?