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

nebula-dependency-recommender-plugin and gradle-lint-plugin together give false positive

Open remy-tiitre opened this issue 8 years ago • 0 comments

I have one bad library: testRuntime 'com.jayway.jsonpath:json-path:2.2.0'

It has transitive dependency net.minidev:accessors-smart:1.1 that repackages org.ow2.asm:asm classes and includes it as transitive dependency as well. OMG

I tried to fix it with: testRuntime ('com.jayway.jsonpath:json-path:2.2.0') { exclude group: 'org.ow2.asm', module: 'asm' }

All good, but when I let version be suggested by dependency recommender plugin like this: testRuntime ('com.jayway.jsonpath:json-path') { exclude group: 'org.ow2.asm', module: 'asm' } it gives me gradle lint warning like this: warning unused-exclude-by-dep the excluded dependency is not a transitive of com.jayway.jsonpath:json-path:null, so has no effect backend/build.gradle:97 exclude group: 'org.ow2.asm', module: 'asm'

So there is something iffi going on with that version number and linter.

remy-tiitre avatar May 17 '17 21:05 remy-tiitre