autonomousapps / autonomousapps/dependency-analysis-gradle-plugin
3.6.0 reports all JS dependencies as unused in KMP project with JS target
- Dominant language
- Kotlin
- Stars
- 2.2k
- Forks
- 158
- Avg merge
- 16h 25m
- Merged PRs (30d)
- 46
Description
**Plugin version**
3.6.0 / 3.6.1
**Gradle version**
9.4.1
**JDK version**
25
**(Optional) Kotlin and Kotlin Gradle Plugin (KGP) version**
2.1.20
**Describe the bug**
I wanted to update DAGP from 3.5.1 to 3.6.1 but then got a complaint about unused dependencies for all my JS-target dependencies.
**Expected behavior**
Not failing.
If JS target is not supported, it should be ignored.
If it is supported, it should work.
Contributor guide
Research direction
Reproduce the report with dependency-analysis-gradle-plugin 3.6.0 or 3.6.1, Gradle 9.4.1, JDK 25, and Kotlin/KGP 2.1.20 in a Kotlin Multiplatform project with a JS target. Compare the generated unused-dependency advice for JS-target dependencies; done means supported JS dependencies are handled correctly or the JS target is explicitly ignored without failing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, kotlin
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100