autonomousapps / autonomousapps/dependency-analysis-gradle-plugin
Unclear advice when upgrading mockk from 1.14.7 to 1.14.9
- Dominant language
- Kotlin
- Stars
- 2.2k
- Forks
- 158
- Avg merge
- 16h 25m
- Merged PRs (30d)
- 46
Description
Renovate tried to upgrade this for me but failed at buildHealth.
DAGP suggests to:
```
Advice for root project
These transitive dependencies should be declared directly:
testImplementation("io.mockk:mockk-core:1.14.9")
```
Reproducer:
https://github.com/patrick-dedication/dagp-mockk-advice
I ran `gradle :reason --id "io.mockk:mockk-core:1.14.9"`, but this only shows the shortest dep paths.
I can't figure out why the advice is given, I don't seem to use a type from mockk-core.
When I add the following it works just fine:
`configurations.testCompileClasspath { exclude("io.mockk", "mockk-core") }`
Contributor guide
Research direction
Start with the linked dagp-mockk-advice reproducer and run `gradle :reason --id "io.mockk:mockk-core:1.14.9"` to compare the reported dependency paths with the build-health advice. Done means the upgrade behavior is explained and the incorrect advice is corrected or the required workaround is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100