autonomousapps / dependency-analysis-gradle-plugin

Gradle plugin for JVM projects written in Java, Kotlin, Groovy, or Scala; and Android projects written in Java or Kotlin. Provides advice for managing dependencies and other applied plugins
Apache License 2.0
1.82k stars 120 forks source link

Plugin doesn't suggest to remove ksp plugin and ksp deps #1308

Open Jacks0N23 opened 1 week ago

Jacks0N23 commented 1 week ago

Plugin version 2.4.2

Gradle version 8.11

JDK version 17

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

(Optional) Android Gradle Plugin (AGP) version 8.7.2

Describe the bug I have old module that had ksp plugin applied in plugins block by alias and ksp dep on dagger.compiler. And I know that they are not required more, but plugin doesn't suggest me to remove them

To Reproduce

  1. create module with ksp lib and dep applied
  2. add some code that doesn't use ksp
  3. run module:projectHealth

Expected behavior Plugin suggest that I should remove this plugin and dependency

autonomousapps commented 1 week ago

This sounds like a feature request (not a bug)? You want the plugin to suggest removing KSP if it's not used?

Could you please provide a minimal project that displays the behavior you're interested in?