Where do I see metrics like Java version which I add to the sonar scanner -Dsonar.java.version=11 -Dsonar.java.builder=Gradle -Dsonar.java.builder.version=8.8?
I really would like to have custom metrics, so that I can easily compare these metrics via API against the EOL API
These analysis parameter values aren’t stored. They’re used during analysis and then discarded.
If you’d like custom values stored with the analysis, you can usesonar.analysis.<key>=<value>, altho values passed this way are not considereds “metrics”. Explicitly, you won’t be able to query them with metric/measure-related APIs, but instead with analysis-related APIs.
Hey, cool approach, but it’s not working
I used -Dsonar.analysis.javaBuilder=Gradle -Dsonar.analysis.javaVersion=8 -Dsonar.analysis.javaBuilderVersion=6.5.1 and it’s not working as it is described in the documentation using this property in the command line may not work.
Thanks for your inquiry and apologies for the delay. This metrics use case is not supported specifically, I’d be interested to hear from the community if there are any other similar needs or related use-cases that might overlap so I invite any more comments. For the time being, we won’t be taking further action on this particular request, but we will keep it in mind as we continue to evolve our product.