I am working on a a gradle project which uses Jacoco has the code coverage tool and SonarQube as the reporting tool.
The project has a dependency on another package which has a class file with the same name as in the root project.
So, the root project has dsl.kt file and also the dependent/sub-project has dsl.kt file.
For this scenario, Jacoco consolidates code coverage from both class files (in root and dependent package) and puts it in the same 'sourcefile name' which is dsl.kt.
When this report is read by SonarQube, it returns 'line out of coverage' error for the class file as the line numbers reported by Jacoco doesn't match with the actual class file.
Please let me know if anyone has a solution/work around for this.