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

Micronaut platform pom file generates duplicate versions of some modules #1690

Open
radovanradic opened this issue Sep 26, 2024 · 2 comments
Assignees

Comments

@radovanradic
Copy link

Issue description

The pom file https://central.sonatype.com/artifact/io.micronaut.platform/micronaut-platform contains entries like this:

...
<micronaut.mongo.version>5.4.0</micronaut.mongo.version>
<micronaut.mongodb.version>5.4.0</micronaut.mongodb.version>
...
<micronaut.oracle.cloud.version>4.2.0</micronaut.oracle.cloud.version>
<micronaut.oraclecloud.version>4.2.0</micronaut.oraclecloud.version>
...
<micronaut.problem.json.version>3.5.0</micronaut.problem.json.version>
<micronaut.problem.version>3.5.0</micronaut.problem.version>
...

This can cause issues when importing micronaut boms since not sure which version will be used by the platform.

@alvarosanchez
Copy link
Member

@melix could this be caused by the inlining of other BOMs?

@melix
Copy link
Collaborator

melix commented Sep 26, 2024

Yes, I think it's because of inlining. Ideally such situations shouldn't happen: either one module should be driving the version and the other module should use its catalog, or one module is using the same dependencies but shouldn't manage them. There are actually warnings during the platform generation, but we ignore them. However, it's probably a bug that there are duplicate dependencies, this should issue a warning and no duplication.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants