AppSizer plugin is incompatible with Gradle 9 (getDependencyProject removed)
- Dominant language
- Kotlin
- Stars
- 210
- Forks
- 12
- Avg merge
- 1m
- Merged PRs (30d)
- 1
Description
After upgrading to Gradle 9 and AGP 9, applying the AppSizer plugin causes the build to fail during configuration. The error mentions the usage of APIs that have been removed in Gradle 9 (for example, `getDependencyProject()`), so the plugin is incompatible with the current Gradle version.
Gradle: 9.1 (or your exact version)
Android Gradle Plugin: 9.0.0
AppSizer plugin version: 0.1.0-alpha03
Unable to find method ''org.gradle.api.Project org.gradle.api.artifacts.ProjectDependency.getDependencyProject()''
'org.gradle.api.Project org.gradle.api.artifacts.ProjectDependency.getDependencyProject()'
Caused by: java.lang.NoSuchMethodError:
'org.gradle.api.Project org.gradle.api.artifacts.ProjectDependency.getDependencyProject()'
at com.grab.plugin.sizer.TaskManager.dfs(TaskManager.kt:132)
at com.grab.plugin.sizer.TaskManager.registerAppSizeTaskDep(TaskManager.kt:115)
at com.grab.plugin.sizer.TaskManager.configAppSizeTask(TaskManager.kt:95)
...
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.