Reputation: 6953
We have a multi-project build in Java where two of the 8 projects are system tests and we don't want to run FindBugs or Checkstyle against the System test code (which is located in 'src/main/java').
I enable findbugs / checkstyle at the top-level build.gradle file but want to "disable" the plugin from running in these two projects?
Upvotes: 3
Views: 3396
Reputation: 6953
I love gradle it turned out to be quite simple
//Disable findbugs and checkstyle as per legacy ant build.xml
findbugs {
sourceSets = []
}
checkstyle {
sourceSets = []
}
Upvotes: 6