gradle-lint-plugin
gradle-lint-plugin copied to clipboard
unused-exclude-by-conf for transitive dependency
I added gradle-lint-plugin as a dependency of my java project. In my gradle file I have amongst other things:
buildscript {
dependencies {
classpath 'com.netflix.nebula:gradle-lint-plugin:latest.release'
}
}
apply plugin: 'nebula.lint'
gradleLint.rules = ['all-dependency']
configurations {
all*.exclude group: 'com.google.code.guice', module: 'guice'
}
dependencies {
compile 'org.jboss.resteasy:resteasy-guice:2.3.7.Final'
}
When I run ./gradlew lintGradle it reports the error:
warning unused-exclude-by-conf the exclude dependency is not in your dependency graph, so has no effect
all*.exclude group: 'com.google.code.guice', module: 'guice'
And if I run ./gradlew fixGradleLint it removes that configuration, but resteasy-guice:2.3.7.Final depends on com.google.code.guice:guice:2.0 so it's now in my dependency graph...
Am I doing something wrong?
Note: my project uses gradle 2.10
We're suffering from the same bug - any updates on this one?