Hi,
Thanks @Dorian_Burihabwa for notifying me.
My conclusions after updating to 7.2.3 for my project:
- works for AGP 9.0 (when Gradle property
android.newDslis set to false) - does not work for AGP 9.0 (when Gradle property
android.newDslis missing or set to true) - So I cannot confirm that the wildcard fix works in this case - does not work for AGP 9.1 because of Sonarcloud not working with Android Gradle Plugin 9.1.0
9.0 / newDsl error:
Could not determine the dependencies of task ‘:sonar’.
Extension of type ‘AppExtension’ does not exist. Currently registered extension types: [ExtraPropertiesExtension, SonarExtension, SonarExtension, DependencyCheckExtension, BasePluginExtension, SpotlessExtension, LibrariesForLibs, VersionCatalogsExtension, RootProjectAccessor, PublishingExtension, SourceSetContainer, ReportingExtension, JavaToolchainService, JavaPluginExtension, KotlinAndroidProjectExtension, ApplicationExtension, ApplicationAndroidComponentsExtension, LintLifecycleExtension, LicenseeExtension, ComposeCompilerGradlePluginExtension, GoogleServicesPlugin.GoogleServicesPluginConfig, JacocoPluginExtension, KspExtension, HiltExtension]
It looks like the SonarQube plugin has a dependency to gradle-common-api:8.13.2 which is old: https://mvnrepository.com/artifact/com.android.tools.build/gradle-common-api
Can you confirm that 7.2.3 is not compatible with the Android Gradle 9 DSL?
More info on the new DSL: https://developer.android.com/build/releases/agp-9-0-0-release-notes#android-gradle-plugin-new-dsl