title: How to get jacoco code coverage report in gradle project
body: <p>I'm new to Groovy gradle world, I've written small groovy project with all test cases. I'm trying to generate code coverage report using jacoco plugin. But it generates only test report not code coverage report. Please find my jacoco gradle file config. I'm using <strong>gradle 4.5 version</strong> and <strong>Groovy Version: 2.5.0</strong>-rc-2 JVM: 1.8.0_171 Vendor: Oracle Corporation OS: Windows 10</p>
  
  <p>What I'm missing here in order to generate jacoco code coverage report in html format.</p>
  
  <p>Appreciated your help in advance!</p>
  
  <p><strong>My jacoco.gradle</strong></p>
  
  <pre><code>apply plugin: "jacoco"
  
  jacoco {
    toolVersion = '0.8.1'
  }
  
  jacocoTestReport {
    group = "reporting"
    description = "Generate Jacoco coverage reports after running tests."
    reports {
      xml.enabled true
      html.enabled true
      csv.enabled false
      html.destination "${buildDir}/jacocoHtml"
    }
    sourceDirectories = fileTree(dir: 'src/main/myproject')
  }
  </code></pre>
  
  <p>I'm running <code>gradle clean build</code> command to generate <strong>build</strong> folder under my project repository.</p>