- ALM used
BitBucket Cloud - CI system used
Azure DevOps - Languages of the repository
Java - Error observed
> Task :sonarqube
The version of Java (11.0.20.1) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
We are using the Azure DevOps Gradle task. The sonarqube task is embedded in task.
Our Java code is still using Java 11, is there a way for us to have the “sonarqube” task use Java 17?
DevOps Gradle Task
task: Gradle@2
displayName: Gradle Build
inputs:
gradleWrapperFile: 'gradlew'
tasks: 'clean build publish'
publishJUnitResults: true
testResultsFiles: '**/TEST-*.xml'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.11'
sonarQubeRunAnalysis: true
sqGradlePluginVersionChoice: 'specify'
sonarQubeGradlePluginVersion: '3.3'
spotBugsAnalysis: false