autonomousapps / autonomousapps/dependency-analysis-gradle-plugin
fixDependencies is not removing unused dependencies
- Dominant language
- Kotlin
- Stars
- 2.2k
- Forks
- 158
- Avg merge
- 16h 25m
- Merged PRs (30d)
- 46
Description
**Plugin version**
1.12.0
**Gradle version**
7.4.1
**(Optional) Android Gradle Plugin (AGP) version**
7.2.2.
```
./gradlew ******:sample:fixDependencies
./gradlew ******:sample:projectHealth
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':******:sample:projectHealth'.
> Unused dependencies which should be removed:
implementation 'com.squareup.moshi:moshi-kotlin:1.13.0'
implementation project(':******:*****')
```
Contributor guide
Research direction
Reproduce the failure with the reported Gradle and Android Gradle Plugin versions by running the sample fixDependencies and projectHealth tasks. Trace why the unused Moshi dependency and project dependency remain after fixDependencies; done means both are removed or correctly handled and projectHealth no longer reports them.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100