Skip to content

Migrate from Jakarta EE 8 to Jakarta EE 9#27976

Closed
linghengqian wants to merge 1 commit into
apache:masterfrom
linghengqian:convert-to-jakarta
Closed

Migrate from Jakarta EE 8 to Jakarta EE 9#27976
linghengqian wants to merge 1 commit into
apache:masterfrom
linghengqian:convert-to-jakarta

Conversation

@linghengqian

@linghengqian linghengqian commented Aug 7, 2023

Copy link
Copy Markdown
Member

Fixes #26041.

Changes proposed in this pull request:


Before committing this PR, I'm sure that I have checked the following options:

  • My code follows the code of conduct of this project.
  • I have self-reviewed the commit code.
  • I have (or in comment I request) added corresponding labels for the pull request.
  • I have passed maven check locally : ./mvnw clean install -B -T1C -Dmaven.javadoc.skip -Dmaven.jacoco.skip -e.
  • I have made corresponding changes to the documentation.
  • I have added corresponding unit tests for my changes.

@linghengqian linghengqian added the type: dependencies Pull requests that update a dependency file label Aug 7, 2023
@linghengqian linghengqian force-pushed the convert-to-jakarta branch 8 times, most recently from 32089fa to 0ebf477 Compare August 7, 2023 21:19
@linghengqian linghengqian marked this pull request as ready for review August 7, 2023 22:04
@linghengqian linghengqian force-pushed the convert-to-jakarta branch 4 times, most recently from 54cd961 to 38f7e10 Compare August 10, 2023 16:44
@terrymanu

Copy link
Copy Markdown
Member

Thank you, I need more time to check it.

@linghengqian linghengqian left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • This PR will be converted to a draft. I'm still not sure if this PR should be merged before Spring Boot OSS 2.x reaches end of OSS support, unless the original issue gets broader feedback.

@linghengqian linghengqian marked this pull request as draft August 12, 2023 11:25
@github-actions

Copy link
Copy Markdown

There hasn't been any activity on this pull request recently, and in order to prioritize active work, it has been marked as stale.

@github-actions github-actions Bot added the stale label Sep 11, 2023
@linghengqian linghengqian marked this pull request as ready for review November 19, 2023 16:45

@linghengqian linghengqian left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • @terrymanu Since web frameworks like Quarkus have started to actively exclude older Java EE 8 dependencies, can we merge this PR at the current milestone? See #26041 (comment) .
  • Spring boot 2.x will stop OSS support on 2023/11/24, and the next release of shardingsphere will be next month.

totalo
totalo previously approved these changes Nov 21, 2023

@totalo totalo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@linghengqian linghengqian left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So for this current controversial PR, I assume there are two steps that need to be taken care of first - this will align with what Narayana was doing during the transition period.

  1. Migrate from Java EE 8 to Jakarta EE 8. This will only change the GAV information of the corresponding dependencies to align the behavior of Spring Boot 2.2-2.7.
  2. Create a Jakarta EE 9 variant of ShardingSphere JDBC Core. The series of processing of ShardingSphere at DistSQL is ignored for the time being, because DistSQL only involves ShardingSphere Proxy.

@linghengqian

Copy link
Copy Markdown
Member Author
  • Terminate this process until further exploration is conducted in shardingsphere-jdbc-5.5.0 causes spring boot to return JSON data as XML #31203 within the context of Spring Boot's WebMVC component. It appears, based on the issue description, that regardless of the XML parsing library introduced, there always exists a corresponding auto-configuration within Spring Boot's WebMVC component that modifies the format of responses from the controller layer. However, the associated issue still lacks unit tests.

@linghengqian linghengqian left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If FasterXML/jackson-dataformat-xml#628 is resolved, I will try to remove the use of JAXB API in the test suite. This will further reduce the impact of this PR.

Java 17 is now required for all components, except for jackson-annotations that still requires just Java 8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature: transaction type: dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Transition from Jakarta EE 8 to Jakarta EE 9

4 participants