title: How can I disable checkstyle rules for tests in gradle?
body: <p>with maven I disabled checkstyle for tests, how can I disable the <code>checkstyleTest</code> task  in gradle?</p>
  
  <p>I've tried variations o these separately</p>
  
  <pre><code>checkstyle {
    toolVersion = '6.10.1'
    exclude '**/*Test.java'
  }
  checkstyleTest {
     sourceSets = []
  }
  </code></pre>
  
  <p>it all ends up in errors</p>