-
Notifications
You must be signed in to change notification settings - Fork 89
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
3.0.0-M1 JSON-B #159
Comments
Hi @fabapp2 What is the expected solution for this change? Is SBM suppose to add "Jakarta EE 9-compatible version of Apache Johnzon" in build files? Ravi |
Hi @ravig-kant ! |
Hi @ravig-kant, |
Thanks for the explanation @fabapp2. I will work on this one. |
Hi @fabapp2 As of today, Apache Johnzon supports JSON-B 1.0 specifications while JakarataEE 9.0 requires JSON-B 2.0. So, shall I raise an exception if the recipe detects an explicit dependency on Apache Johnzon? https://johnzon.apache.org/download.html Thanks |
Hi @ravig-kant Thanks for looking into it. I can follow you and can't see which version of Johnzon should be used in place of Yasson. For reference: For now, I think this should become a precondition check in #237. Not sure about your current state but throwing an exception would work for now (and get it merged). As soon as we start working on #237 we can see how to integrate it there? |
Hi @ravig-kant
|
Thanks, @fabapp2 I will start fixing. |
… Spring boot migration 2.7 to 3.x
Hi @fabapp2 PR raised. Ravi |
…n 2.7 t… (#265) Co-authored-by: Ravi Gupta <ravikant.gupta@salesforce.com>
…n 2.7 t… (#265) Co-authored-by: Ravi Gupta <ravikant.gupta@salesforce.com>
FYI, we have included a recipe in rewrite-migrate-java to make the appropriate changes to johnzon dependencies in maven: |
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0.0-M1-Release-Notes#json-b
What needs to be done
Dependency management for Apache Johnzon has been removed in favor of Eclipse Yasson. A Jakarta EE 9-compatible version of Apache Johnzon can be used with Spring Boot 3, but you will now have to specify a version in your dependency declaration.
if dependency to Johnzon found on classpath...
1.1 replace it with
org.apache.johnzon:johnzon-core:1.2.18:jakarta
2 if the version is NOT managed by Spring Boot (declared)
2.1 replace it with
org.apache.johnzon:johnzon-core:1.2.18:jakarta
TestProjectContext
for this ActionThe text was updated successfully, but these errors were encountered: