autonomousapps / autonomousapps/dependency-analysis-gradle-plugin

False negative on implementation dependency

Open
#770 1 comment 0 reactions 0 assignees View on GitHub
bug question
Dominant language
Kotlin
Stars
2.2k
Forks
158
Avg merge
16h 25m
Merged PRs (30d)
46

Description

I don't have a repro project but locally we are getting a false negative.

`projectHealth` will tell me
```
You asked about the dependency 'org.jetbrains.kotlinx:kotlinx-coroutines-rx2:1.6.4'.
You have been advised to change this dependency to 'testImplementation' from 'implementation'.
```
but when the dependency is set to `testImplementation`, I get compilation errors.

How could I debug that to ideally get it fixed upstream?

Contributor guide

Open the contributing guide

Research direction

Start by creating a minimal reproduction for the kotlinx-coroutines-rx2:1.6.4 dependency and compare projectHealth's advice with the compilation errors after changing implementation to testImplementation. Done means the dependency scope is correctly identified and the resulting project compiles without the false-negative advice.

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
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.