which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
sonar-qube-gradle plugin id "org.sonarqube" version "4.4.1.3373"
JDK11: azul-11.0.24
how is SonarQube deployed: zip, Docker, Helm
Run by Shell In Local.
what are you trying to achieve ./gradlew build sonarqube
what have you tried so far to achieve this
Met this issue :
org/sonar/batch/bootstrapper/EnvironmentInformation has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
Tried to clean cache: ./gradlew clean && rm -dfr ~/.sonar/*
Export JAVA_HOME export JAVA_HOME=/Users/UserA/Library/Java/JavaVirtualMachines/azul-11.0.24/Contents/Home
But still met this issue.
Below is my gradle configuration. Looking forward to your response. Thanks! BTW: My project could only use JDK11.
plugins {
id 'org.springframework.boot' version '2.7.14'
id 'jacoco'
id "org.sonarqube" version "4.4.1.3373"
}
sonarqube {
properties {
property "sonar.projectKey", "<projectKey>"
property "sonar.organization", "<organization>"
property "sonar.host.url", "https://sonarcloud.io"
}
}
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!
The requirement on the Java runtime environment refers only to the version of Java used by the scanner itself to run. It does not restrict the versions of Java that can be analyzed by the scanner. In addition, the required version changes with successive versions of the scanner.
I want to integrate the Sonarqube with the Pull Request Analysis.
But met this error when running at Github Actions.
* What went wrong:
Execution failed for task ':sonarqube'.
[169](https://github.com/<repo>/<project>/actions/runs/11718238607/job/32330550849?pr=1136#step:16:170)> Could not find the pullrequest with key '1146'
I don’t have the repo admin access. Before I request the admin to do this.
Could I provide the organization and project key with you then you help to check this? THX