Skip to content
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

Inline dependencies from Micronaut BOMs into the generated BOM #690

Merged
merged 2 commits into from
May 28, 2024

Conversation

melix
Copy link
Contributor

@melix melix commented May 28, 2024

This commit adds inlining of dependencies from imported Micronaut BOMs into the generated BOM. The dependencies are added before the imported BOMs so that we make sure that they take precedence in Maven.

In addition, we still have a import dependency on the Micronaut BOMs because they themselves may import other BOMs which are not Micronaut BOMs. If we removed the import then we would loose some dependency constraints.

This fixes the problem that despite the fact our BOM declares dependency versions, these are ignored when the user overrides them.

It's worth noting that this isn't a recursive behavior, so if an imported catalog wasn't itself published with this code, its downstream catalogs won't be inlined.

Fixes #689

This commit adds inlining of dependencies from imported Micronaut BOMs
into the generated BOM. The dependencies are added _before_ the imported
BOMs so that we make sure that they take precedence in Maven.

In addition, we still have a <scope>import</scope> dependency on the
Micronaut BOMs because they themselves may import other BOMs which are
not Micronaut BOMs. If we removed the import then we would loose some
dependency constraints.

Fixes #689
@melix melix added the enhancement New feature or request label May 28, 2024
@melix melix added this to the 7.0.2 milestone May 28, 2024
@melix melix requested a review from alvarosanchez May 28, 2024 13:56
@melix melix self-assigned this May 28, 2024
Copy link
Member

@alvarosanchez alvarosanchez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this perhaps go into a new minor of the plugins? Ideally, this should debut with Platform 4.5

@melix melix merged commit 2d62384 into master May 28, 2024
3 checks passed
@melix melix deleted the cc/issue-689 branch May 28, 2024 14:59
@melix melix modified the milestones: 7.0.2, 7.1.0 May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inline all Micronaut modules' dependencies in the Platform BOM
2 participants