-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Inter-Project Dependencies #14
Comments
I had a quick play around with what's available in sbt and zinc, and I think we could do something.
The first part of the output shows us that the The second part shows that the project depends on 2 classes in other projects for its compilation. Both of these classes are in the So a rough implementation would look like:
Then it's simply
and
|
This plugin is great to find unused dependencies on single project. |
This is an issue-discussion, but I have no inner SBT knowledge to know if this is feasible.
This is a great plugin for detecting the unused or undeclared entries in
libraryDependencies
, the ones that SBT has to resolve throughivy
. However, there are Scala repositories that may be organised with a multi-project build, which may have scores of subprojects, which are also interconnected with interproject dependencies. This creates several challenges for explicit dependency declaration.B
, andB
declares one onC
, butA
is invoking a function fromC
through its declared dependency onB
.A
declares dependency on subprojectB
that is not needed.A
, which declares a dependency on a sub-projectB
, may be using a library dependency that it nether declares, nor is it a transitive library dependency of those that A declares, but which is a library dependency (explicit of transitive) of sub-projectB
.The goal of this issue would be to investigate how these problems can be solved in this plugin.
The text was updated successfully, but these errors were encountered: