autonomousapps / autonomousapps/dependency-analysis-gradle-plugin
Detect and fix when a dependency is in both implementation and api
- Dominant language
- Kotlin
- Stars
- 2.2k
- Forks
- 158
- Avg merge
- 16h 25m
- Merged PRs (30d)
- 46
Description
There's the simple case of the same coordinates declared in both configurations.
The case I just fixed was more complex as it was two different version catalog entries:
```toml
[versions]
foundationLayout = "1.8.3"
[libraries]
compose-bom = { module = "androidx.compose:compose-bom", version = "2025.08.00" }
composeUi-foundation-layout = { module = "androidx.compose.foundation:foundation-layout" }
androidx-foundation-layout = { group = "androidx.compose.foundation", name = "foundation-layout", version.ref = "foundationLayout" }
```
```groovy
dependencies {
api platform(libs.compose.com)
api libs.composeUi.foundation.layout
implementation libs.androidx.foundation.layout
}
```
Contributor guide
Research direction
No source file or test is named. Start by reproducing the shown Gradle version-catalog setup, including the two aliases for foundation-layout, and inspect the dependency analysis advice. Done means the plugin detects the duplicate implementation/api dependency even when the aliases and versions differ, then reports or fixes it consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy, 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