NullStress / gradle-dependency-analysis-plugin

A gradle dependency analysis plugin.
Apache License 2.0
25 stars 1 forks source link

Plugin falsely reports Unused Declared Artifact for dependencies on other projects in multi-project build #2

Open dljsjr opened 8 years ago

dljsjr commented 8 years ago

Hey there,

Not sure how active you still are with this, but figured I'd give it a shot. I stumbled across this plugin just a moment ago and wanted to try it out. But our use case relies heavily on large multi-project builds. For whatever reason, the plugin reports all dependencies of the form compile project(':OtherProject') as unused declared artifacts, thus leading to console spew from the exceptions and a failed build. They are definitely used, as removing the declarations causes the projects to stop compiling.

NullStress commented 8 years ago

Hi, sorry for the late reply. Yes the plugin was not tested that much and I haven't worked on it for some time now. I would suggest that you try with https://github.com/nebula-plugins/gradle-lint-plugin/wiki/Unused-Dependency-Rule