Description
Describe the bug
I was testing out quarkus update ability to update between versions, i.e. from a io.quarkus to com.redhat.quarkus platform.
And it seems that quarkus update blindly update the version without checking the platform name.
resulting in update failing as its just a partial update.
Related to https://issues.redhat.com/browse/QUARKUS-1912
Expected behavior
we switch both version and platform:
<quarkus.platform.group-id>io.quarkus.platform<quarkus.platform.group-id>
<quarkus.platform.version>3.8.6</quarkus.platform.version>
to
<quarkus.platform.group-id>com.redhat.quarkus.platform<quarkus.platform.group-id>
<quarkus.platform.version>3.8.5.SP1-redhat-00001</quarkus.platform.version/>
or tell that user has to explicitly ask for platform switch.
Actual behavior
we get just platform version change,i.e.;
<quarkus.platform.version>3.8.6</quarkus.platform.version>
to
<quarkus.platform.version>3.8.5.SP1-redhat-00001</quarkus.platform.version/>
How to Reproduce?
run with default ~/.quarkus/config.yml content:
quarkus create app -S=3.8
to get a io.quarkus version, could also be 3.7 - could also be higher but in this this case keep it at 3.8 as otherwise we bump into quarkus-rest rename that is separate concern.
then build that app and check it works. at time of writing it picked up 3.8.6
then go add redhat registry as the primary choice:
---
registries:
- registry.quarkus.redhat.com
- registry.quarkus.io
including adding https://maven.repository.redhat.com/ga/ to ~/.m2/settings.xml to be able to resolve dependencies.
Then run:
quarkus update -S=3.8
which at time of writing will pickup a 3.8.5-SP1-redhat-00001
and result in build failure because
it only changes the platform version - NOT the platform group.
Output of uname -a
or ver
No response
Output of java -version
No response
Quarkus version or git rev
No response
Build tool (ie. output of mvnw --version
or gradlew --version
)
No response
Additional information
furthermore, also tried quarkus update -P=com.redhat.quarkus.platform:3.8.5.SP1-redhat-00001
to help it but then also fails.