Hi guys,
I am using:
SonarQube 9.0 (upgraded recently to that version)
Azure DevOps + self-hosted agents with java 1.8 & java 11 / sonar-maven-plugin-3.9.0.2155 installed on it.
My app can only be build with java 1.8.
I am using Maven Task as part of Azure Pipeline to build the app and run Sonar Analysis as described below:
https://docs.sonarqube.org/latest/analysis/azuredevops-integration/
Since the upgrade on the SonarQube Server, i am getting following error:
org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.0.2155:sonar failed: An API incompatibility was encountered while executing org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.0.2155:sonar: java.lang.UnsupportedClassVersionError: 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
Since both Build and Analysis of the app run as part of the same Maven task, I can’t find a way to run the build with java 1.8 and then the analysis with java 11.
Do you have any hints so as to how I could achieve that?
Thanks in advance!
Dilyan