SonarCloud Quality Gate failing saying that java version 11 was not supported for python repository

  • ALM used - GitHub

  • CI system used - Circle CI

  • Scanner command used when applicable (private details masked) -
    $SONAR_CMD -X -Dsonar.projectKey=$sonar_projectKey -Dsonar.organization=$sonar_organization -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$sonar_login -Dsonar.language=python -Dsonar.python.version=3.8 -Dsonar.projectName=ai -Dsonar.projectVersion=2.5.3 -Dsonar.sonar.qualitygate.wait=true -Dsonar.sonar.sources=. -Dsonar.python.coverage.minimumCoverage=70 -Dsonar.sourceEncoding=UTF-8 -Dsonar.python.coverage.reportPaths=coverage.xml

  • Languages of the repository - Python

  • Error observed - The version of Java (11.0.3) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.

  • Steps to reproduce - After every commit

Hi,

Welcome to the community!

I’m fairly confident that this was presented as a warning, rather than an error. Either way, it’s entirely unrelated to your Quality Gate.

As a side note

This does nothing; you can drop it.

This isn’t doing anything because of the repeated sonar.. You should edit it to sonar.qualitygate.wait.

This isn’t doing anything. You should edit your Quality Gates in the UI.

 
HTH,
Ann

Hi,

Thanks for the response. Is there a way to get rid of that java warning?

Hi,

It’s pretty clear in the warning: upgrade the JVM running analysis to Java 17.

 
HTH,
Ann