Retreive the language version used for a analysis

Hello,
We are using sonarqube version : * Version 8.9.10
Maven plugin sonar : 3.5.0.1254

I would like to retreive the version used for language java which is used during a analysis. We already provide the variable sonar.java.source during scan configuration. Is it possible to get this information by using api sonarqube?

I tried to used the api/measures/components but i don’t get the answer i Want.

Thank you.

Hey there.

You might be able to parse this information out of the scanner context for a specific Compute Engine task (GET api/ce/task), which is where analysis parameters like sonar.java.source can be found.

And, overall, we don’t expect information like language version to be extracted from SonarQube. It’s just information used to refine the analysis.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.