dependency-analysis-gradle-plugin icon indicating copy to clipboard operation
dependency-analysis-gradle-plugin copied to clipboard

Plugin doesn't detect unused dependency in KMP gradle.build.kts file

Open radimjanda754 opened this issue 3 years ago • 1 comments
trafficstars

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

radimjanda754 avatar Aug 09 '22 09:08 radimjanda754

Thanks for the issue. This plugin does not yet support KMP projects.

autonomousapps avatar Aug 13 '22 16:08 autonomousapps