What went wrong:
Execution failed for task ‘:sonarqube’.
org/sonar/batch/bootstrapper/EnvironmentInformation has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
means you started a java application that was compiled with Java11 (class file version 55.0) for
target > Java 8 with Java 8 (class file version 52.0). It has to be started with Java 11 instead.
But the analysis - seems to be with Gradle in your case - typically runs on another machine, i.e. in a Jenkins pipeline or similar.
So you need to adjust it on the machine where analysis runs.
You may use Java8, but Sonar scanner has to be run with Java11
which is set via -Dsonar.java.jdkHome = /usr/lib/jvm/java-11-openjdk
Did you already try this ?
What went wrong:
Execution failed for task ‘:sonarqube’.
org/sonar/batch/bootstrapper/EnvironmentInformation has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.