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

build: Replace javax.json with jakarta.json for Jakarta EE 9+ compatibility #7336

Closed
wants to merge 1 commit into from

Conversation

ElUnrast
Copy link

Description of Change

Replaced the dependency on javax.json with jakarta.json to ensure compatibility with Jakarta EE 9+ environments, such as Tomcat 10. This change is necessary because Jakarta EE 9+ exclusively supports the jakarta.* namespace, and applications relying on javax.* are incompatible with these environments.

This modification allows DependencyCheck to be embedded in applications (e.g., WAR files) deployed on modern Jakarta EE 9+ servers without namespace conflicts.

Related issues

Have test cases been added to cover the new functionality?

no (Existing test cases should verify that the functionality is unaffected by the namespace migration. If additional tests are required, please let me know.)

@boring-cyborg boring-cyborg bot added core changes to core tests test cases utils changes to utils labels Jan 20, 2025
@ElUnrast ElUnrast changed the title Changed Dependency from javax.json to jakarta.json build: Replace javax.json with jakarta.json for Jakarta EE 9+ compatibility Jan 20, 2025
@jeremylong
Copy link
Owner

Thanks for the PR - however, it looks like I beat you to this change. I was working on something else yesterday and noticed the use of javax so I created PR #7326.

@jeremylong jeremylong closed this Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core changes to core tests test cases utils changes to utils
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate from javax.json to jakarta.json for Compatibility with Jakarta EE 9+ and Tomcat 10
2 participants