autonomousapps / autonomousapps/dependency-analysis-gradle-plugin

Unclear advice when upgrading mockk from 1.14.7 to 1.14.9

Open
#1,638 2 comments 0 reactions 0 assignees View on GitHub
bug more information needed toolchain:kotlin
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.