Using org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.8.0.1969 and executing gradlew sonarqube within my project I get:
Unable to create symbol table for : /home/rli/devel/repository/source/java/project/products/KeywordSyncServer/src/main/java/com/synedra/server/kwsync/AIMSynchronizer.java
java.lang.IllegalArgumentException: Unsupported class file major version 57
at org.objectweb.asm.ClassReader.(ClassReader.java:184)
at org.objectweb.asm.ClassReader.(ClassReader.java:166)
at org.objectweb.asm.ClassReader.(ClassReader.java:152)
at org.sonar.java.resolve.BytecodeCompleter.loadClass(BytecodeCompleter.java:244)
at org.sonar.java.resolve.Symbols.(Symbols.java:176)
at org.sonar.java.resolve.SemanticModel.createFor(SemanticModel.java:60)
at org.sonar.java.model.VisitorsBridge.visitFile(VisitorsBridge.java:121)
…
It seems like Java 13 (which we are using) is not yet supported.
Is there a way to specify the version of the ASM Library to be used (7.2 would support Java 13/14)?
Are there any plans to support Java 13 in the near term?
Unfortunately, same can’t be said about Java 14. It is now a full month after GA release and Sonar still does not support it (and is the only thing blocking the upgrade in our case).
@grimsa thanks for the response, as you can see by my very late response, we simply stopped using Sonar because we couldn’t wait for them to support Java 13 and 14.
All our projects have upgraded to Java 13, and we’re about to start upgrading to 14.