Skip to content

Indirect dependencies not part of poly libs command #613

Description

@jeroenvandijk

Describe the bug

I have two projects:

A) brick 1, brick 2
B) brick 1

brick 1 depends on external library Y, but does not declare it, it fetches version 1 of library Y via library X
brick 2 depends on external library Y version 2

When I run

poly libs 

Only shows the dependency of library Y for project A (because of brick 2), not for project B

library                      version     type    KB    A   B
com.stuartsierra/component   1.1.0       maven   18    x   -

To Reproduce

Need to create a structure like described above.

Expected behavior

Not entirely sure. It would be helpful if Polylith had an option to compare the differences in dependencies of a brick given the project context.

But it would eventually be helpful to see the difference in deps like:

library                      version     type    KB    A   B
com.stuartsierra/component   1.1.0       maven   18    x   -
com.stuartsierra/component   0.2.2       maven   18    -   x

I can also image it would be helpful to have options to only show libraries where there are differences in version numbers, because a missing library would typically directly cause compilation errors because of missing namespaces and are therefore easy to find, but library version mismatches typically cause no errors, but when they do they are often very subtle and they can be hard to identify.

Workspace Attachment

Operating System (please complete the following information):

  • OS: MacOS
  • Version: 26

Versions

  • Java: 25
  • Poly: 2790bc3 (I need to update, but i don't expect a difference)
  • Brew: not sure

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions