You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I'm trying to remove unused dependencies in my project. Particularly I have unused testImplementation dependencies that are not reported by the plugin.
Describe the solution you'd like testImplementation dependencies should be reported as unused if they are not needed in tests.
❯ ./gradlew buildHealth
> Task :buildHealth
Advice for root project
Looking good! No changes needed
Advice for project :lib
Unused dependencies which should be removed:
- implementation("com.google.guava:guava:29.0-jre")
- api("org.apache.commons:commons-math3:3.6.1")
Expected output
Since the library build script contains an unused testImplementation dependency on org.robolectric:robolectric:3.8, it should be reported by ./gradlew buildHealth.
The text was updated successfully, but these errors were encountered:
Thanks for the reproducer! That will make it a lot easier to dig into. I wonder if Robolectric is only used at runtime.... I wonder what would happen if you used the Reason feature?
Is your feature request related to a problem? Please describe.
I'm trying to remove unused dependencies in my project. Particularly I have unused
testImplementation
dependencies that are not reported by the plugin.Describe the solution you'd like
testImplementation
dependencies should be reported as unused if they are not needed in tests.Additional context
I've created a repro: https://github.com/Dim0N22/dependency-analysis-android-gradle-plugin-testImplementation-bug-repro.
Steps to reproduce:
Output
Expected output
Since the library build script contains an unused
testImplementation
dependency onorg.robolectric:robolectric:3.8
, it should be reported by./gradlew buildHealth
.The text was updated successfully, but these errors were encountered: