Since a day or two (?) we’re getting comments in our PRs like this from SonarCloud:
SonarCloud analysis warning for project “XXXX”
The version of Java (11.0.20) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here
I know we can specify the JDK version in our azure devops but I’d prefer not to pin it to a version. We’re currently default settings. This is what our yml looks like:
I have updated my pipeline to set 17 JDK as the default to test and I am still getting this warning on PRs. I am using the Sonarcloud prepare/analyze/publish pipeline tasks, not the sonarscanner via CLI. My guess is the tasks themselves have Java set to 11 for some reason.
I am running the ubuntu-latest image in my pipelines which defaults to Java 11 as the default, but also has Java 17 preinstalled. I just started seeing this warning a day ago as well.