title: how to exclude other gradle tasks when running checkstyle plugin
body: <p>I hava a springBoot2.x project build with gradle 5.4 and querydsl ,
  when I run  <code>./gradlew clean build</code> without checkstyle plugin all things go well. 
  But when I add checkstyle plugin in <code>build.gradle</code>  and run <code>./gradlew clean build</code> ,
  it came out this error:
  <code>Execution failed for task ':compileQuerydslJava'</code>,    then I try to run <code>./gradlew clean build -x compileQuerydslJava</code> it works again. So my question is : how to  exclude compileQuerydslJava on checkstyle config in build.gradle file?</p>