title: Sonarqube and Jacoco Gradle Plugins
body: <p>I'm using</p>
  
  <p><a href="https://docs.gradle.org/4.2.1/userguide/jacoco_plugin.html" rel="nofollow noreferrer">https://docs.gradle.org/4.2.1/userguide/jacoco_plugin.html</a></p>
  
  <p>and </p>
  
  <p><a href="https://plugins.gradle.org/plugin/org.sonarqube/2.6.2" rel="nofollow noreferrer">https://plugins.gradle.org/plugin/org.sonarqube/2.6.2</a></p>
  
  <p>In a java app.</p>
  
  <p>Running './gradlew build jacocoTestreport sonarqube' works fine, I can see my code coverage in sonarqube.</p>
  
  <p>My question is how though?</p>
  
  <p>I don't declare the sonar.jacoco.reportPaths, so that defaults to build/jacoco/test.exec, which is created by the jacocoTestReport task.</p>
  
  <p>So does sonarqube run that exec or something? Or does that jacoco.exec know where the xml reports have been created at build/reports/jacoco/test/jacocoTestReport.xml?</p>
  
  <p>Or, is that XML path some other sort of default that sonarqube is using?</p>
  
  <p>It's all working, so great, but I'm documenting it all for others and a bit confused as to how it all hangs together.</p>