build.gradle in project root
subprojects { subProject ->
plugins.withId('com.android.application') {
subProject.apply from: file("${project.rootDir}/code_analysis/findbugs.gradle")
}
plugins.withId('com.android.library') {
subProject.apply from: file("${project.rootDir}/code_analysis/findbugs.gradle")
}
plugins.withId('java') {
subProject.apply from: file("${project.rootDir}/code_analysis/findbugs-java.gradle")
}
}