dependency-analysis-gradle-plugin icon indicating copy to clipboard operation
dependency-analysis-gradle-plugin copied to clipboard

`fixDependencies` doesn't work with type-safe accessors

Open aris-amo opened this issue 5 months ago • 3 comments

Build scan link

Plugin version

Gradle version

JDK version

(Optional) Kotlin and Kotlin Gradle Plugin (KGP) version

(Optional) Android Gradle Plugin (AGP) version

(Optional) reason output for bugs relating to incorrect advice

Describe the bug

When using the plugin in a project that uses type-safe accessors, although the analysis is performed correctly, the advice produced by the plugin is not type-safe based, so when fixDependencies tries to apply it, nothing happens.

To Reproduce Steps to reproduce the behavior:

  1. ...

Expected behavior

Additional context

aris-amo avatar Aug 06 '25 08:08 aris-amo

Thanks for the report. Could you provide a minimal reproducer?

autonomousapps avatar Aug 07 '25 16:08 autonomousapps

Cashapp has this problem, here's a simple reproducer:

dagp-fix-deps-typesafe-project-accessors.zip

joshfriend avatar Aug 14 '25 20:08 joshfriend

I just put up a PR that adds support for type-safe accessors to fixDependencies : https://github.com/autonomousapps/dependency-analysis-gradle-plugin/pull/1522

kartikagrawal27 avatar Aug 15 '25 18:08 kartikagrawal27