dependency-analysis-gradle-plugin
dependency-analysis-gradle-plugin copied to clipboard
Plugin doesn't detect unused dependency in KMP gradle.build.kts file
Plugin version 1.11.0
Gradle version 7.4.2
Describe the bug We have project which consist of shared KMP modules and classic android modules. For android modules the plugin works +- fine, but I noticed it doesn't work at all for KMP modules. For example the KMP gradle.build.kts file looks like this
kotlin.sourceSets {
val commonMain by getting {
dependencies {
implementation(project(":shared:dependency1"))
implementation(project(":shared:dependency2"))
}
}
}
I tried to add random dependency3 (which is not used in this module) just to check whether the plugin would detect the dependency or no, and the dependency remained undetected
Should current version of plugin work in this case?
To Reproduce add random dependency to KMP gradle.build.kts file
Expected behavior dependency would be recognized as unused
Thanks for the issue. This plugin does not yet support KMP projects.