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

Support for Jakarta JSONB version 2 #762

Merged
merged 1 commit into from
Dec 5, 2021
Merged

Support for Jakarta JSONB version 2 #762

merged 1 commit into from
Dec 5, 2021

Conversation

vojtechhabarta
Copy link
Owner

This PR adds support for Jakarta JSON bind version 2. To have support for both version 1 and version 2 it was needed to use javax.json.bind:javax.json.bind-api dependency for version 1 and jakarta.json.bind:jakarta.json.bind-api for version 2.

I didn't want to copy&paste implementation so I changed JsonbParser to support both versions at the same time. Also JsonbParserTest is reused. It was updated for Jakarta and is copied in build time with replaced jakarta.json.bind imports to javax.json.bind. (It is done in a similar way as support for JAX-RS version 2 (javax) and version 3 (jakarta) in JaxrsApplicationParser.)

@vojtechhabarta
Copy link
Owner Author

@rmannibucau you are the author of original implementation so if you want to comment I will leave this PR open for a week.

@rmannibucau
Copy link
Contributor

Works for me. I'd just mention i tend to use maven shade plugin relocation to do it and a dedicated module but it is an impl detail, no user impact so let's go.

@vojtechhabarta
Copy link
Owner Author

Thanks you. Merging.

@vojtechhabarta vojtechhabarta merged commit a69a36b into main Dec 5, 2021
@vojtechhabarta vojtechhabarta deleted the jsonb2 branch December 5, 2021 16:36
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.

None yet

2 participants