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.67k stars 115 forks source link

fix: handle disjoint classpaths. #1119

Closed autonomousapps closed 5 months ago

autonomousapps commented 5 months ago

If the main source set has a used dependency, and a custom source set has an unused transitive dependency, and these are at different versions, StandardTransform was advising the removal of the used dependency. Now we check that the usage is not undeclared before adding to the set of remove-advice.