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

Migrating to Quarkus 3.0 #230

Merged
merged 2 commits into from
Sep 21, 2023
Merged

Conversation

apupier
Copy link
Member

@apupier apupier commented Apr 28, 2023

the main change is migrating from JavaEE to JakartaEE.

it remains some javax packages. they are javax.xml. i tis still part of the JDK so no need of migration

I guess it is a change that requires a major version upgrades.
Should I increment the versions in this PR or do it in a separate PR?

Also, i think it is impacting almost all other com-pas projects;maybe better to prepare PR for all other repositories before merging this one.

@apupier apupier force-pushed the upgradeToQuarkus3.0 branch 3 times, most recently from c6d9481 to 09f1706 Compare May 5, 2023 13:17
@apupier apupier changed the title Work In progress - Migrating to Quarkus 3.0 Migrating to Quarkus 3.0 May 5, 2023
@Sander3003
Copy link
Member

Thanks for your contribution; Suggestion: Test the performance of Jaxb.

Should I increment the versions in this PR or do it in a separate PR? A seperate pull-request will be fine!

@apupier
Copy link
Member Author

apupier commented May 9, 2023

Quarkus 3.0.2 has been released.

Will need to update the PR

@apupier
Copy link
Member Author

apupier commented May 26, 2023

compared to previous version of the PR:

  • rebased on develop
  • updated to Quarkus 3.0.4
  • cleaned xjc files
  • removed no more necessary com.sun.xml.bind:jaxb-impl

the main change is migrating from JavaEE to JakartaEE.

- update Quarkus bom from io.quarkus:quarkus-universe-bom to
io.quarkus.platform:quarkus-bom as it was deprecated since Quarkus 2.1
https://github.com/quarkusio/quarkus/wiki/Migration-Guide-2.1#quarkus-universe-bom-is-deprecated
(and it is required to use the Quarkus migration tool)
- launched quarkus `quarkus update --stream=3.0` as mentioned in
https://github.com/quarkusio/quarkus/wiki/Migration-Guide-3.0#automatic-update-tool
which dealt with a fair part of the migration. Then it remained few
little tasks.
- Updated one package-info annotation
- Updated from jakarta.websocket:jakarta.websocket-api to
io.quarkus:quarkus-websockets (another alternatives might be to add
jakarta.websocket:jakarta.websocket-client-api)
- Updated Jaxb generation. Moving from
org.jvnet.jaxb2.maven2:maven-jaxb2-plugin to
com.helger.maven:jaxb40-maven-plugin. Jaxb 3+ is supporting Jakarta.
using a fork which has implemented the support of Jacxb4. The initial
repository is not very active despite issue raised and a PR is proposed:
see highsource/jaxb-tools#253
- updated xjb files:
  - namespace from `http://java.sun.com/xml/ns/jaxb` to
`https://jakarta.ee/xml/ns/jaxb`
  - version from 1.2 to 3.0 (which is mandatory in accordance to the
namespace)
- Remove com.sun.xml.bind:jaxb-impl no more needed dependency

Signed-off-by: Aurélien Pupier <[email protected]>
@sonarcloud
Copy link

sonarcloud bot commented Jun 28, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@apupier apupier marked this pull request as ready for review June 28, 2023 08:19
@sonarcloud
Copy link

sonarcloud bot commented Sep 21, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@pascalwilbrink pascalwilbrink merged commit eb5c3e1 into com-pas:develop Sep 21, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

3 participants