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.