title: How to configure sonar.coverage.jacoco.xmlReportPaths for JaCoCo/SonarQube?
body: <p>SonarQube 7.7 shows the following warning for a Java project analysis:</p>
  
  <blockquote>
    <p>Property 'sonar.jacoco.reportPath' is deprecated (JaCoCo binary format). 'sonar.coverage.jacoco.xmlReportPaths' should be used instead (JaCoCo XML format).</p>
  </blockquote>
  
  <p>The Gradle based project is configured via <code>sonar-project.properties</code> as follows:</p>
  
  <pre class="lang-properties prettyprint-override"><code>sonar.projectKey=MyExampleLib
  sonar.projectName=MyExample Library
  sonar.sources=src/main/java
  sonar.jacoco.reportPath=build/jacoco/test.exec
  sonar.junit.reportsPath=build/test-results/test
  sonar.java.test.binaries=build/classes/test
  sonar.java.binaries=build/classes/java/main
  sonar.binaries=build/classes
  sonar.projectVersion=$libVersion
  </code></pre>
  
  <p>The SonarQube server URL is injected via (otherwise you end up with a "localhost:9000" error):</p>
  
  <p><a href="https://i.stack.imgur.com/Hap5P.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Hap5P.png" alt="Prepare SonarQube Scanner environment"></a></p>
  
  <p>The SonarQube analysis is triggered via Jenkins and the <a href="https://plugins.jenkins.io/jacoco" rel="noreferrer">JaCoCo plugin</a> v.3.0.4 with the following Job configuration:</p>
  
  <p><a href="https://i.stack.imgur.com/DD6ca.png" rel="noreferrer"><img src="https://i.stack.imgur.com/DD6ca.png" alt="JaCoCo configuration"></a></p>
  
  <p>I read that a <code>report.xml</code> is picked up by <code>xmlReportPaths</code>. How can I generate it?</p>
  
  <h1>Related</h1>
  
  <ul>
  <li><a href="https://github.com/jacoco/jacoco/issues/919" rel="noreferrer">https://github.com/jacoco/jacoco/issues/919</a></li>
  <li><a href="https://github.com/jacoco/jacoco/commit/6babdb5233217b0812a85f6b1673aabe7f0fd47e" rel="noreferrer">https://github.com/jacoco/jacoco/commit/6babdb5233217b0812a85f6b1673aabe7f0fd47e</a></li>
  </ul>