gradle-version-catalogs-intellij-plugin icon indicating copy to clipboard operation
gradle-version-catalogs-intellij-plugin copied to clipboard

Versions show as unused when only used outside of a dependency context

Open jsoberg opened this issue 1 year ago • 1 comments

For versions that aren't used in dependencies, and are instead only used directly in build.gradle.kts files, the linking to libs.versions.toml works fine but the version shows as being unused in the version catalog.

As an example, I have a composeKotlinCompiler version in my catalog, and I only end up using it directly in build.gradle.kts or convention plugins like so:

android {
    buildFeatures.compose = true
    composeOptions {
        kotlinCompilerExtensionVersion = libs.versions.composeKotlinCompiler.get()
    }
}

and seemingly because of that, this version shows as unused in the libs.versions.toml view.

Side-note: Thanks so much for the plugin, much appreciated!

jsoberg avatar Jun 23 '23 14:06 jsoberg