SonarQube 5.4, Jacoco plugin, Gradle, Scanner 2.7
My project structure is as follows:
I’m trying to upload code coverage to Sonar server. When I run sonarqube, it keeps saying “Coverage information was not collected. Perhaps you forget to include debug information into compiled classes?”.
In proja, projb, projc I compile with the “-g” flag to debug and then in the test project gradle, I point java.binaries to the binaries of proja, projb, projc. I am sure the paths are correct here. On my sonar server, it says “This component does not have coverage details.” for my test project. I am sure that the jacoco generated report is in the correct location. I specified “sonar.core.codeCoveragePlugin” to jacoco as well.
How can I resolve these problems?