title: Could not find method jacocoTestReport() for arguments [{type=class org.gradle.testing.jacoco.tasks.JacocoReport, dependsOn=testDebugUnitTest}
body: <p>I am following along with this tutorial to try and get test coverage metrics in my java + kotlin project which is built with gradle : </p>
  
  <p><a href="http://Could%20not%20find%20method%20jacocoTestReport()%20for%20arguments%20[%7Btype=class%20org.gradle.testing.jacoco.tasks.JacocoReport,%20dependsOn=testDebugUnitTest%7D" rel="nofollow noreferrer">http://vgaidarji.me/blog/2017/12/20/how-to-configure-jacoco-for-kotlin-and-java-project/</a></p>
  
  <p>I copy and pasted each block in, to avoid any syntax errors on my part - and am getting the following error : </p>
  
  <pre><code>Could not find method jacocoTestReport() for arguments [{type=class org.gradle.testing.jacoco.tasks.JacocoReport, dependsOn=testDebugUnitTest}
  </code></pre>
  
  <p>The only thing I do differently from the tutorial is drop 'task' from the line which is the signature of jacocoTestReport... because if I have it - the plugin cries that the task cannot be added, as it is already defined - as per the documentation, I removed it - so that it extends the one provided by the plugin.</p>
  
  <p>Has anyone else seen this? I could really use some help - as it wont work no matter what I do. Also, this is a straight java + kotlin project, not android.</p>