Skip to content

Update target JDK to 11 and move to JakartaEE 9#132

Merged
vharseko merged 33 commits intoOpenIdentityPlatform:masterfrom
maximthomas:update-jdk-11
Sep 18, 2025
Merged

Update target JDK to 11 and move to JakartaEE 9#132
vharseko merged 33 commits intoOpenIdentityPlatform:masterfrom
maximthomas:update-jdk-11

Conversation

@maximthomas
Copy link
Copy Markdown
Contributor

@maximthomas maximthomas commented Dec 25, 2024

jakarta-ee-compatible-logo-color

@maximthomas maximthomas requested a review from vharseko December 25, 2024 06:14
@maximthomas
Copy link
Copy Markdown
Contributor Author

Maybe update the project version to 3.0.0-SNAPSHOT in this PR?

@maximthomas maximthomas requested a review from aldaris July 2, 2025 08:26
Comment thread commons/audit/handler-jms/pom.xml Outdated
<version>2.0.1</version>
<groupId>jakarta.jms</groupId>
<artifactId>jakarta.jms-api</artifactId>
<version>3.1.0</version>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Jakarta JMS 3.1.0 is Jakarta EE 10, not 9 FYI. Depends on which version you want to upgrade to.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thank you for pointing that out.
Tomcat 10.1 supports Servlet version 6.0, which is part of Jakarta EE 10 https://tomcat.apache.org/whichversion.html
And Tomcat 10.0 is EOL

</dependency>
<dependency>
<groupId>com.jayway.restassured</groupId>
<groupId>io.rest-assured</groupId>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is the rest-assured upgrade related to these changes? Just wondering if it's needed for the Jakarta upgrade?

Copy link
Copy Markdown
Contributor Author

@maximthomas maximthomas Jul 2, 2025

Choose a reason for hiding this comment

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

Reverted rest-assured version for now, this is unnecessary change 5f86893

"HttpOnly");
assertThat(cookieCaptor.getValue()).contains("COOKIE_NAME=COOKIE_VALUE;", "Domain=www.example.com;",
"Expires="+df.format(
new Date(System.currentTimeMillis() + 6000 * 1000L)));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not sure how reliable this test is going to be. If there's a clock change while running the test you might get a randomly failing test on your hands. If you really need to assert on this, use a fixed Clock instance instead?
Also could simplify 6000 * 1000L to 6_000_000L.

Copy link
Copy Markdown
Contributor Author

@maximthomas maximthomas Jul 2, 2025

Choose a reason for hiding this comment

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

Reverted the test, using Max-Age cookie attribute is more appropriate, see ad27745

Comment thread persistit/pom.xml
<animal-sniffer.signature.artifactId>java17</animal-sniffer.signature.artifactId>
<animal-sniffer.signature.version>1.0</animal-sniffer.signature.version>
<version.animal-sniffer.plugin>1.16</version.animal-sniffer.plugin>
<version.animal-sniffer.plugin>1.20</version.animal-sniffer.plugin>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Note that newer versions of animal-sniffer were sniffing out some binary incompatibilities. The persistit backend might not work on the latest versions of JDKs FYI.

Comment thread pom.xml Outdated
<version>3.1.0</version>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<version>6.0.0</version>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

5.0.0 is Jakarta EE 9, 6.0.0 is Jakarta EE 10. Jetty 11 only supports Servlet API 5.0 (and Jetty 11 is EOL). Tomcat 10.0.x was servlet-api 5, Tomcat 10.1.x is servlet-api 6.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We are aiming for Tomcat 10.1 and Jetty 12 support, so I think we should migrate to Jakarta EE 10.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

In that case we have some references to Jetty 11.0.25 in this PR that will need to be updated to 12.0.23

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately Jetty 12.0.23 supports min JDK 17 version, so I think we should upgrade to Jakarta EE 9 for now. 3ea1189

@vharseko vharseko force-pushed the master branch 2 times, most recently from 2e23d97 to 35b7528 Compare July 15, 2025 10:08
@vharseko vharseko changed the title Update target JDK to 11 and move to JakartaEE Update target JDK to 11 and move to JakartaEE 9 Aug 1, 2025
@vharseko vharseko force-pushed the master branch 3 times, most recently from c250271 to 5ac80c3 Compare August 4, 2025 14:14
@vharseko vharseko merged commit c522d77 into OpenIdentityPlatform:master Sep 18, 2025
24 checks passed
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