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?
I love gradle it turned out to be quite simple
//Disable findbugs and checkstyle as per legacy ant build.xml
findbugs {
sourceSets = []
}
checkstyle {
sourceSets = []
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.