From 9d340a81aa53a6a6bac66a7dfefd03853ac7ddf7 Mon Sep 17 00:00:00 2001 From: ismisepaul Date: Thu, 4 Jun 2026 22:34:48 +0100 Subject: [PATCH 1/2] build: jakarta-ready dependencies (PR 1 of jakarta migration #861) Build-config-only step of the javax -> jakarta migration. Does not compile on its own (source still imports javax.*); the mechanical import rename follows in the next sub-PR. - jakarta.servlet:jakarta.servlet-api:6.0.0 (was javax.servlet:javax.servlet-api:4.0.1) - jakarta JSTL 3.0 api + glassfish impl (was jstl:jstl:1.2) - org.eclipse.angus:angus-mail:2.0.3 (was com.sun.mail:javax.mail:1.6.2) - remove javax:javaee-api:8.0.1 (pulls the legacy javax namespace back in) - align Spring to 6.1.21 (spring-test 5.3.31, spring-core 6.0.2, spring-context 5.3.31 were inconsistent) - remove spring-mock:2.0.8 (Spring 6 spring-test provides the Jakarta mocks) - remove fongo (unused; tests @Disabled, rescue tracked in #876) - .env Tomcat base image 9.0 -> 10.1 (first Jakarta-namespace Tomcat) Refs #861. Targets Spring 6.1.x (not 7) per discussion on #869. --- .env | 2 +- pom.xml | 58 ++++++++++++++++++++++++++------------------------------- 2 files changed, 27 insertions(+), 33 deletions(-) diff --git a/.env b/.env index 9c189ff3b..40fae83d9 100644 --- a/.env +++ b/.env @@ -1,6 +1,6 @@ VERSION=3.1 -TOMCAT_DOCKER_VERSION=9.0-jre17-temurin +TOMCAT_DOCKER_VERSION=10.1-jre17-temurin DB_VERSION=10.6.11 MONGODB_VERSION=4.1.13 diff --git a/pom.xml b/pom.xml index 303618e4c..b31ad81d9 100644 --- a/pom.xml +++ b/pom.xml @@ -68,11 +68,11 @@ jtidy r938 - + - com.sun.mail - javax.mail - 1.6.2 + org.eclipse.angus + angus-mail + 2.0.3 @@ -81,23 +81,26 @@ mongo-java-driver 3.12.14 + - javax - javaee-api - 8.0.1 + jakarta.servlet + jakarta.servlet-api + 6.0.0 provided + + - javax.servlet - javax.servlet-api - 4.0.1 - provided + jakarta.servlet.jsp.jstl + jakarta.servlet.jsp.jstl-api + 3.0.0 - - jstl - jstl - 1.2 + org.glassfish.web + jakarta.servlet.jsp.jstl + 3.0.1 @@ -147,7 +150,7 @@ org.springframework spring-test - 5.3.31 + 6.1.21 test @@ -155,30 +158,21 @@ org.springframework spring-core - 6.0.2 - test - - - - - org.springframework - spring-mock - 2.0.8 + 6.1.21 test - - com.github.fakemongo - fongo - 2.1.1 - test - + org.springframework spring-context - 5.3.31 + 6.1.21 From c53f6d32bae2ab897e623f4ddace2b883c40d7a1 Mon Sep 17 00:00:00 2001 From: Paul McCann Date: Thu, 4 Jun 2026 22:48:10 +0100 Subject: [PATCH 2/2] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index b31ad81d9..2fcf4f27d 100644 --- a/pom.xml +++ b/pom.xml @@ -164,7 +164,7 @@