title: Generate Checkstyle HTML report with Gradle
body: <p>I'd like to get the output of running Checkstyle via Gradle as an HTML report.</p>
  
  <p>I've found nothing in the <a href="http://www.gradle.org/docs/current/dsl/org.gradle.api.plugins.quality.Checkstyle.html">Checkstyle plugin documentation</a>.</p>
  
  <p>I've added the following to my <code>build.gradle</code> file.</p>
  
  <pre class="lang-groovy prettyprint-override"><code>checkstyleTask {
      reports {
          html {
              destination "build/reports/checkstyle.html"
          }
      }
  }
  </code></pre>
  
  <p>but this yielded </p>
  
  <blockquote>
    <p>What went wrong: A problem occurred evaluating root project 'MyProject'.</p>
    
    <blockquote>
      <p>Could not find method checkstyleTask() for arguments [build_1vu33nc0ekgtoo19jt e86o8o42$_run_closure8@1d8ee20] on root
      project 'MyProject'.</p>
    </blockquote>
  </blockquote>
  
  <p>Is there a way to generate Checkstyle HTML reports using Gradle?</p>
  
  <p>Thanks.</p>