Update starter to include Liberty for Jakarta EE 11#382
Conversation
|
Can one of the admins verify this patch? |
|
Once there is actual certification, please take this out of draft mode. I'll review it at that point. Thanks! |
|
All CCRs were marked accepted |
|
FYI @m-reza-rahman |
|
I'll take a look ASAP. Currently trying to stabilize a long pending release. Should get to it by the end of the weekend hopefully. |
| value="Java SE 11 requires Jakarta EE below 11."/> | ||
| <h:outputText | ||
| styleClass="footnote" | ||
| value="Java SE 8 requires Jakarta EE below 10."/> |
There was a problem hiding this comment.
Minor comment... the "spirit" of the rewording above is to say " EE 10 requires Java SE 11..." rather than "..above 8". By the same token you might say "SE 8 requires EE 9.1 or below" instead of "..below 10".
| value="Jakarta EE 11 requires Java SE 17 or later."/> | ||
| <h:outputText | ||
| styleClass="footnote" | ||
| value="Jakarta EE 10 requires Java SE 11 or later."/> |
There was a problem hiding this comment.
Noting the others combine the text into one <h:outputText> with a two-sentence value, but I think this is maybe more readable.
There was a problem hiding this comment.
Yes, please fix. The same for the next change.
scottkurz
left a comment
There was a problem hiding this comment.
I think you need to change this line..it fails if I actually run mvn archetype:generate and select Open Liberty with EE 11.
archetype-post-generate.groovy: throw new RuntimeException("Failed, only Payara currently supports Jakarta EE 11 in a stable release")
| #else | ||
| <feature>webProfile-11.0</feature> | ||
| #end | ||
| #else |
There was a problem hiding this comment.
Please remove this for now. We'll add it when EE 12 is a bit more real.
| <feature>webProfile-10.0</feature> | ||
| #end | ||
| #else | ||
| #elseif (${jakartaVersion} == '11') |
There was a problem hiding this comment.
Please remove this. EE 11 can be the fallback case.
| runtimes.get("glassfish").setDisabled(false); | ||
| } | ||
|
|
||
| if (jakartaVersion == 11) { |
There was a problem hiding this comment.
This else-if block can now be removed altogether.
Yes, this change is entirely missing. The right thing to do at this point is remove the EE 11 catch- all validation and move it to the runtime specific sections. We will need to soon enable GlassFish for EE 11 too, so this change is timely. The correcpionding nightly tests need to be updated as well. |
m-reza-rahman
left a comment
There was a problem hiding this comment.
Please address comments. After that, I'll review again.
There was a problem hiding this comment.
Pull request overview
Enables Open Liberty as a selectable/runtime-tested target for Jakarta EE 11 in the starter UI and archetype outputs, aligning UI guidance and CI coverage with the Jakarta EE 11 Java SE baseline.
Changes:
- Updated UI footnotes to explicitly state Java SE requirements for Jakarta EE 10 vs 11, and clarified Java SE 8 constraints.
- Allowed Open Liberty to be selectable for Jakarta EE 11 in the UI runtime enablement logic.
- Extended Open Liberty archetype config and nightly workflow coverage to include Jakarta EE 11 (Java 17 and 21; full/web/core profiles) with Docker builds.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
ui/src/main/webapp/index.xhtml |
Updates UI footnotes to reflect Jakarta EE 10/11 Java SE requirements and Java SE 8 constraints. |
ui/src/main/java/org/eclipse/starter/ui/Project.java |
Adjusts runtime enablement so Open Liberty is no longer disabled for Jakarta EE 11. |
archetype/src/main/resources/archetype-resources/src/main/liberty/config/server.xml |
Refines Liberty feature selection logic for Jakarta EE 11 (and adds a fallback for 12). |
.github/workflows/nightly.yml |
Adds nightly archetype + Docker build validation for Jakarta EE 11 on Open Liberty (Java 17 and 21; multiple profiles). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@m-reza-rahman and @scottkurz I have addressed your review comments I believe. |
|
OK, will look ASAP, thanks. |
scottkurz
left a comment
There was a problem hiding this comment.
LGTM. Tested the UI and archetype:generate a bit and my comments seem addressed.
m-reza-rahman
left a comment
There was a problem hiding this comment.
LGTM. I’ll take it from here.
|
@m-reza-rahman I see that it is merged, but it appears that start.jakarta.ee hasn't been updated to have the new code deployed. When will that happen? |
|
We also need to update for GlassFish. Probably in a few weeks? |
|
Also, @jhanders34 - it looks like the merge has broken the nightly build: https://github.com/eclipse-ee4j/starter/actions/runs/27994183766/job/82852778584. Can you kindly take a look? Otherwise, this is one more thing I need to do. |
@m-reza-rahman I created PR #383 which should resolve this issue. |
|
Merged. Hopefully that was it. |
Last night's nightly build was good. |
Pending compatibility certification issues: