gradle-lint-plugin icon indicating copy to clipboard operation
gradle-lint-plugin copied to clipboard

False positive when excluding transitive dependency

Open hkupty opened this issue 3 years ago • 1 comments

Hi, I'm using nebula-plugins to help me migrate from maven to gradle and it really did help figuring out either missing declared dependencies or unnecessary dependencies. However, it is giving me a few false-positives. From what I can see, those happen when the dependency is declared w/ an interpolated version number. The most obvious case is this one where I'm excluding a transitive dependency that is explicitly declared in said package's pom.xml but shows up as an unused exclude.

warning   unused-exclude-by-dep              the excluded dependency is not a transitive of org.litote.kmongo:kmongo-flapdoodle:$kmongoVersion, so has no effect. See https://github.com/nebula-plugins/gradle-lint-plugin/wiki/Unused-Exclude-Rule for more details
libs/kotlin/test-utils/build.gradle:20
exclude group: 'org.slf4j', module: 'slf4j-simple'

hkupty avatar Dec 22 '21 20:12 hkupty

I believe this is a duplicate of #224.

boris-petrov avatar Feb 09 '22 06:02 boris-petrov