A pluggable and configurable linter tool for identifying and reporting on patterns of misuse or deprecations in Gradle scripts.
757
stars
88
forks
source link
"unused-dependency" rule doesn't work version catalogs #390
Open
zman0900 opened 1 year ago
When using Gradle's "version catalog" feature to declare dependencies, the "unused-dependency" detector doesn't find problems that it normally would.
With
gradle/libs.versions.toml
file containing:Nothing is detected when dependency is declared like this on a project that does not use slf4j-api:
But if dependency is declared like this instead, it is correctly detected as unused: