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

WIP: Migrate javax -> jakarta (Jakarta EE 9) #4367

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

erikgb
Copy link
Contributor

@erikgb erikgb commented Jan 17, 2023

GitHub issue resolved: #

Briefly describe the changes proposed in this PR:


PR Author Checklist (see the contributor guidelines for more details):

  • my pull request is self-contained
  • I've added tests for the changes I made
  • I've applied code formatting (you can use mvn process-resources to format from the command line)
  • I've squashed my commits where necessary
  • every commit message starts with the issue number (GH-xxxx) followed by a meaningful description of the change

@@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
jdk: [11, 19]
jdk: [17, 19]
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think that's a migration we can do at this point - there's significant subset of our users that require support for Java 11.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see and can understand why. 😃 Could it be an option to require Java 17 to use the modules with spring/spring-boot dependencies - if I can find a way to configure it?

Copy link
Contributor

Choose a reason for hiding this comment

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

With RDF4j V5 we can all go to java 17 IMHO. Maybe it is better I open that in a discussion topic though.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

With RDF4j V5 we can all go to java 17 IMHO. Maybe it is better I open that in a discussion topic though.

I hope so. I can start a discussion about this. It is a requirement for the javax -> jakarta migration that blocks a lot of other upgrades like servlet containers (Jetty, Tomcat), Spring/Spring Boot+++

Choose a reason for hiding this comment

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

why would you need to bump this to Java 17? RDF4J compiled for Java 11 can still be used with Java 17, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Spring Boot 3.x and Spring 6.x requires Java 17. And without upgrading Spring we cannot migrate from javax to jakarta. This is WIP. We need to find a smart way of doing this....

Choose a reason for hiding this comment

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

Sorry, I had a misunderstanding: I was thinking that some (external) Spring app using Java 17 would not require RDF4J also being compiled for Java 17. But you are actually talking about the RDF4J workbench using Spring inside, so RDF4J depending on Spring, not the other way round, right?

So maybe we create a separate module that is using a Spring6/Spring Boot 3/Java 17 variant of the workbench?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The problem is the dependencies. You must choose, either javax or jakarta. Never both.

@abrokenjester abrokenjester linked an issue Jan 19, 2023 that may be closed by this pull request
@erikgb erikgb force-pushed the GH-3559-javax-to-jakarta branch 3 times, most recently from e3c6b6b to d603a95 Compare February 16, 2023 13:32
@erikgb erikgb changed the base branch from main to develop February 16, 2023 13:32
@erikgb erikgb force-pushed the GH-3559-javax-to-jakarta branch 2 times, most recently from 2179dc5 to e88fdff Compare May 17, 2023 16:50
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.

Move to Jakarta EE
4 participants