title: Can't get Coverity Scan to work (Java/Kotlin/Gradle 3.3 on Windows and Travis)
body: <p><strong>UPDATE: See the solution in Caleb's answer</strong></p>
  
  <p>I am trying really hard to make Coverity work for my build, but so far with little success.</p>
  
  <p>First the details:</p>
  
  <ul>
  <li>My project is run of the mill java library (no web or fancy containers), very few compile-only dependencies, built using Gradle </li>
  <li>The production code is written in Java and Kotlin</li>
  <li>The complete project is available on github: <a href="https://github.com/ddimtirov/nuggets" rel="nofollow noreferrer">https://github.com/ddimtirov/nuggets</a> </li>
  <li>And on Coverity Scan: <a href="https://scan.coverity.com/projects/ddimtirov-nuggets?tab=project_settings" rel="nofollow noreferrer">https://scan.coverity.com/projects/ddimtirov-nuggets?tab=project_settings</a> </li>
  <li>My development environment is Windows 10, Java 1.8.0_92, Gradle 3.3, CMD shell (though I also tried Cygwin and Mingw Bash)</li>
  <li>there is also Travis build on Linux </li>
  </ul>
  
  <p>I started by downloading a package from: <a href="https://scan.coverity.com/download/java/win64" rel="nofollow noreferrer">https://scan.coverity.com/download/java/win64</a> </p>
  
  <p>Then I added the bin directory to my path, went to my project root and ran the following commands.</p>
  
  <pre><code>$ set PATH=%PATH%;C:\Users\dimit\sandbox\cov-analysis\bin
  $ gradlew clean
  $ cov-build --dir cov-int gradlew jar
  </code></pre>
  
  <p>The first 2 went as expected, the last - not so much:</p>
  
  <pre><code>Coverity Build Capture (32-bit) version 8.7.0 on Windows 10 Professional, 64-bit (build 14393)
  Internal version numbers: b452b3f2c8 p-lodi-push-28091.612
  
  The system cannot execute the specified program.
  [WARNING] Build command gradlew.bat jar exited with code 1. Please verify that the build completed successfully.
  [WARNING] No files were emitted. This may be due to a problem with your configuration
  or because no files were actually compiled by your build command.
  Please make sure you have configured the compilers actually used in the compilation.
   For more details, please look at:
      C:/Users/dimit/sandbox/nuggets/cov-int/build-log.txt
  </code></pre>
  
  <p>I have put the build log here: <a href="https://gist.github.com/ddimtirov/9daa0e9f1f0954453f01fcec42ae2198" rel="nofollow noreferrer">https://gist.github.com/ddimtirov/9daa0e9f1f0954453f01fcec42ae2198</a></p>
  
  <p>The "Troubleshoot build failure" on the instructions page was pointing to a forum index page, which does not help at all: <a href="https://software-community-synopsys.force.com/s/#4838" rel="nofollow noreferrer">https://software-community-synopsys.force.com/s/#4838</a> </p>
  
  <p>Moving on, I thought that if I could only generate the data in some other way I could upload it to the scan service and bypass the problem. I found <a href="https://github.com/mjdetullio/gradle-coverity-plugin" rel="nofollow noreferrer">https://github.com/mjdetullio/gradle-coverity-plugin</a> </p>
  
  <p>The Gradle Coverity plugin emitted the data, but when I zipped it and uploaded to the scan service, it barfed the error email.</p>
  
  <p>As last resort, I tried the TravisCI integration - after a few attempts, I got it to complete without an error, but it didn't seem to upload anything...</p>
  
  <p><a href="https://travis-ci.org/ddimtirov/nuggets/builds/196307253" rel="nofollow noreferrer">https://travis-ci.org/ddimtirov/nuggets/builds/196307253</a>
  <a href="https://scan.coverity.com/projects/ddimtirov-nuggets?tab=overview" rel="nofollow noreferrer">https://scan.coverity.com/projects/ddimtirov-nuggets?tab=overview</a> </p>
  
  <p>I am close to giving up (BTW, not having docs available online doesn't help)</p>