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

Add Jakarta EE 10 compatibility #349

Merged

Conversation

poikilotherm
Copy link

@poikilotherm poikilotherm commented Jul 27, 2022

Closes #345
Closes #346

This isn't ready yet, as I want to change the Github Action to build with both Jakarta EE 9 and EE 10, so down the road we can make sure it builds and runs with both.

This also means adding Wildfly 27 into the mix, which is their first EE 10 based release. Currently in Alpha, but nearing the finish line just as Payara.

If you folks feel we should add a Payara 6 testing flavor, too, please speak out.

If you want me to split up the PR in multiple smaller ones, please let me know.

To more easily change and reuse the Jakarta and Spring versions
to be used, add properties for these.

Change showcase POMs to use these versions and remove any
hardcoded versions, instead rely on BOMs.
Instead of relying on Java 17+, this should be buildable with JDK 11, too.
Let's test in CI if this works.
We need to use JDK 17 but built for 11. Needs better way to do this.

This reverts commit 731d543.
- Adding compiler config to build for JDK 11 but using JDK 17
  to be Spring 6 compatible
- Adding enforcer check in parent to make sure anybody trying
  to build with JDK 11 (minimum for Jakarta EE 10) keeps
  away from that.
Mostly adding the Injection API because JSF beans
go away with Jakarta EE 10.
JSF @ManagedBeans have been deprecated since JSF 2.0.
With Jakarta EE 10, these go away. Replacing them with
normal CDI injection.
Certain servlet methods have been deprecated long time ago.
With Jakarta EE 10, these go away. Replacing them where
possible.
The CDI methods to fire events in use within this
library have been deprecated since CDI 1.1.
With Jakarta EE 10, these go away.

Reducing them with the official ways outlined within
CDI 3.0 spec to be compatible with Jakarta EE 9 and EE 10.
…space

The XSD location has changed with Jakarta EE 9, fixing that.
With Jakarta Faces 4.0 contained in Jakarta EE 10,
the long deprecated JSP support has been dropped.
To make this library usable with both EE 9 and EE 10,
the JSP tags should simple go away. People should use
JSF components instead.
@poikilotherm
Copy link
Author

poikilotherm commented Jul 27, 2022

Hey @larsgrefer @lincolnthree maybe you can take a first look at this?

@lincolnthree can you tick off the workflow run? Thanks!

@lincolnthree
Copy link
Member

Hey guys. First, my apologies for keeping you all waiting for so long after putting in so much work on this. This summer has been incredibly challenging for personal reasons, so I just want to say thank you for your patience and I'm sorry again. I'm back in the saddle for a bit and will get the workflow (and hopefully discussion) started back up again on this.

@lincolnthree lincolnthree marked this pull request as ready for review September 1, 2022 15:00
@lincolnthree
Copy link
Member

And yes, @poikilotherm if you wanted to add a test-suite ad GitHub automation for Payara that would be excellent! The more containers the merrier!!

@lincolnthree
Copy link
Member

lincolnthree commented Sep 1, 2022

@poikilotherm One question. Is Jakarta EE 10 backwards compatible with 9? Should this have its own branch?

Also currently trying to figure out why actions are not available on this PR. Working on it...

@lincolnthree
Copy link
Member

Don't worry when you see this @poikilotherm I'm closing this temporarily to try opening a new PR and see if that gets actions working.

@lincolnthree
Copy link
Member

Ok simply closing and re-opening did the trick. Strange.

@lincolnthree
Copy link
Member

@poikilotherm @larsgrefer Given that this removes support for JSP, which is still compatible with EE 9, I'm inclined to base this on a new develop-jakartaee-10 branch. Thoughts?

@codylerum
Copy link
Contributor

I'm approaching in the midst of my upgrade to EE10 and (Wildfly 27) and I'm wondering where we stand on this?

@lincolnthree
Copy link
Member

lincolnthree commented Oct 17, 2022

Hey @codylerum . As far as I know, this needs a new branch, and some snapshots. Would that help in your testing? I can make it happen tomorrow.

@lincolnthree lincolnthree changed the base branch from develop-jakartaee-9 to develop-jakartaee-10 October 17, 2022 04:49
@lincolnthree lincolnthree merged commit 87bda52 into ocpsoft:develop-jakartaee-10 Oct 17, 2022
@lincolnthree
Copy link
Member

@poikilotherm @codylerum 6.0.0.Alpha1 (which should support EE10 via this PR) should be in maven central soon. Just did the release.

@codylerum
Copy link
Contributor

@lincolnthree Thanks I'm hoping to take it for a spin in the next week or so

@poikilotherm poikilotherm deleted the develop-jakartaee-10 branch October 18, 2022 18:53
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.

3 participants