kellyfj
kellyfj

Reputation: 6953

In gradle how do I disable the findbugs or checkstyle plugins for individual projects

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

Answers (1)

kellyfj
kellyfj

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

Related Questions