Ive got a working project with java8 and publishing data to sonarqube. When i move the java version used to 10, it is not working anymore. That is the only change I do.
I’ve created a sample project to reproduce the issue, it is available there: https://github.com/ltoublanc/spring-boot-sonarqube
On that project, if you execute it with 2 different jre (such as 9 and 10), you will have different results.
- sonar gradle plugin: 2.6.2
- sonarqube docker image: 7.1
- java 9: Java™ SE Runtime Environment (build 9+181)
- java 10: Java™ SE Runtime Environment 18.3 (build 10.0.1+10)
Basically, with java10, the build is failing with stack like that for all classes:
Unable to create symbol table for : /Users/user/devtools/code/sonarqube-sample/src/test/java/com/example/sonarqubesample/SonarqubeSampleApplicationTests.java
The steps to reproduce are described in the readme of the sample repository.
I haven’t found any workaround.