This version of the Java Runtime only recognizes class file versions up to 52.0

hi Support team
We are facing a JDK version issue when we use the sonarcloud scan plugin in the maven project in GitHub actions, please kindly review the error message in the screenshot, we are using JDK1.8 in our maven project, and I know the plugin code was compiled with JDK 11 (55.0). is there any way that we don’t need to change the JDK for our Maven project, but the plugin can still work properly? i added -Dsonar.java.source=11 as one of arguments for org.sonarsource.scanner.maven:sonar-maven-plugin, but the error still exists. please let me know how to resolve this issue. thanks

Hey there.

Take a look at the documentation on Scanner Environment.