JDK and Gradle version compatibility issue while setting up sonarcloud to my existing github repo

Hi Need help in setting up sonarcloud to my existing github organisation repo since i can able to analyse the project and setup it gives me a sample build.gradle and build.yml file but i face a lot of version compatibility issues with my current jdk and gradle version setup so i need help from your end how can i setup sonar version automatically based on my code version.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.

Hi,

Welcome to the community!

Per the docs, the minimum Gradle version for analysis is 7.3 and the minimum Java version is 17.

You’ll need to start with those upgrades, and from there, if you need to you can target compiling to a lower version of Java.

 
HTH,
Ann