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

Properly update the Platform for Maven #43540

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gsmet
Copy link
Member

@gsmet gsmet commented Sep 26, 2024

For now, it doesn't work with Gradle due to OpenRewrite limitations but at least in the Maven case, we properly update the Platform groupId if we switch Platforms.

Also better handle adding new Platforms or removing Platforms.

Note that there is a big limitation to lift before merging this: OpenRewrite doesn't update the properties when updating the groupId/artifactId (it only does it for the version) which causes issues as we need to update the groupId for the plugin - and in any case, the current behavior is not very clean.

Another important thing to address before merging is the update of the Platform from io.quarkus to io.quarkus.platform which might not be what we want. We are using the io.quarkus Platform in very specific cases such as extension development and we want to keep this one when updating.

Fixes #42943 at least in the Maven case.

For now, it doesn't work with Gradle due to OpenRewrite limitations but
at least in the Maven case, we properly update the Platform groupId if
we switch Platforms.

Also better handle adding new Platforms or removing Platforms.

Note that there is a big limitation to lift before merging this:
OpenRewrite doesn't update the properties when updating the
groupId/artifactId (it only does it for the version) which causes issues
as we need to update the groupId for the plugin - and in any case, the
current behavior is not very clean.

Another important thing to address before merging is the update of the
Platform from io.quarkus to io.quarkus.platform which might not be what
we want. We are using the io.quarkus Platform in very specific cases
such as extension development and we want to keep this one when updating.

Fixes quarkusio#42943 at least in the Maven case.
@gsmet
Copy link
Member Author

gsmet commented Sep 26, 2024

Creating as draft for now as there are a couple of limitations to lift.

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

Successfully merging this pull request may close these issues.

quarkus update updating version but not platform when switching registries
1 participant