Gradle 9.0 deprecation

Hello all :wave:

In our project, we are trying to proactively address deprecations for Gradle 9.0.

One of them comes when using sonarqube Gradle plugin:

plugins {

Whenever we run the ./gradlew :sonar --warning-mode=all --stacktrace task we get the following warning:

The org.gradle.api.plugins.JavaPluginConvention type has been deprecated. This is scheduled to be removed in Gradle 9.0. Consult the upgrading guide for further information:
        at org.gradle.api.plugins.internal.NaggingJavaPluginConvention.logDeprecation(
        at org.gradle.api.plugins.internal.NaggingJavaPluginConvention.getSourceSets(
        at org.sonarqube.gradle.SonarPropertyComputer.configureJavaClasspath(
        at org.sonarqube.gradle.SonarPropertyComputer.configureSourceDirsAndJavaClasspath(
        at org.sonarqube.gradle.SonarPropertyComputer.lambda$configureForJava$4(
        at org.gradle.api.internal.collections.CollectionFilter$1.execute(

My questions are:

  • Could you confirm that this should be addressed in the sonarqube plugin?
  • Could you address this issue?

Thank you in advance!

Hello @almeydajuan89, welcome to the Sonar Community!

Thank you for preemptively raising up this compatibility issue in sight of upgrading to Gradle 9. The [SONARGRADL-135] - Jira has been created to tackle it.


1 Like