Skip to content

Commit ddea478

Browse files
committed
[#1802] Switch pax-web-tomcat from javax to jakarta
1 parent b9ccf97 commit ddea478

22 files changed

+427
-374
lines changed

pax-web-tomcat/pom.xml

+43-28
Original file line numberDiff line numberDiff line change
@@ -43,31 +43,31 @@
4343
<instructions>
4444
<Bundle-Activator>org.ops4j.pax.web.service.tomcat.internal.Activator</Bundle-Activator>
4545
<Import-Package>
46-
<!-- ranges indicate Servlet API 3.1+ (JavaEE 7+) -->
47-
javax.servlet;version="[3.1,5)",
48-
javax.servlet.annotation;version="[3.1,5)",
49-
javax.servlet.descriptor;version="[3.1,5)",
50-
javax.servlet.http;version="[3.1,5)",
51-
52-
<!-- ranges indicate we can work with OSGi Core R6+ -->
53-
org.osgi.framework;version="[1.8,2)",
46+
<!-- ranges indicate Servlet API 6.0+ (JakartaEE 10+) -->
47+
jakarta.servlet;version="[6,7)",
48+
jakarta.servlet.annotation;version="[6,7)",
49+
jakarta.servlet.descriptor;version="[6,7)",
50+
jakarta.servlet.http;version="[6,7)",
51+
52+
<!-- OSGi Core R8+ -->
53+
org.osgi.framework;version="[1.10,2)",
5454
org.osgi.framework.wiring;version="[1.2,2)",
5555
org.osgi.util.tracker;version="[1.5,2)",
5656

5757
<!-- OSGi cmpn -->
58-
org.osgi.service.http;version="[1.2,2)",
59-
org.osgi.service.http.whiteboard;version="[1.1,2)",
58+
org.osgi.service.servlet.whiteboard;version="[2,3)",
6059

6160
<!-- from pax-web-api -->
6261
org.ops4j.pax.web.service;version="${pax-web.osgi.version}",
62+
org.ops4j.pax.web.service.http;version="${pax-web.osgi.version}",
6363
org.ops4j.pax.web.utils;version="${pax-web.osgi.version}",
6464
<!-- from pax-web-spi -->
6565
org.ops4j.pax.web.service.spi.*;version="${pax-web.osgi.version}",
6666
<!-- from pax-web-jsp -->
6767
org.ops4j.pax.web.jsp;version="${pax-web.osgi.version}";resolution:=optional,
6868

6969
<!-- from pax-logging-api -->
70-
org.slf4j;version="[1.7,2)",
70+
org.slf4j;version="[2,3)",
7171
org.apache.juli.logging,
7272

7373
<!-- pax-web-tomcat-common / tomcat-api -->
@@ -100,19 +100,19 @@
100100
org.apache.juli;version="${dependency.org.apache.tomcat}",
101101

102102
<!-- other -->
103-
javax.annotation;version="[1.2,2)";resolution:=optional,
103+
jakarta.annotation;version="[2,3)";resolution:=optional,
104104
javax.management,
105105
javax.management.modelmbean,
106106
javax.naming,
107107
javax.naming.spi,
108108
javax.net.ssl,
109-
javax.security.auth,
110-
javax.security.auth.callback,
111-
javax.security.auth.login,
112-
javax.security.auth.message,
113-
javax.security.auth.message.callback,
114-
javax.security.auth.message.config,
115-
javax.security.auth.message.module,
109+
jakarta.security.auth,
110+
jakarta.security.auth.callback,
111+
jakarta.security.auth.login,
112+
jakarta.security.auth.message,
113+
jakarta.security.auth.message.callback,
114+
jakarta.security.auth.message.config,
115+
jakarta.security.auth.message.module,
116116
javax.xml.parsers,
117117
javax.xml.transform,
118118
org.w3c.dom,
@@ -268,11 +268,11 @@
268268
</dependency>
269269
<dependency>
270270
<groupId>org.osgi</groupId>
271-
<artifactId>osgi.cmpn</artifactId>
271+
<artifactId>org.osgi.service.servlet</artifactId>
272272
<scope>provided</scope>
273273
</dependency>
274274

275-
<!-- JavaEE -->
275+
<!-- JakartaEE -->
276276

277277
<dependency>
278278
<groupId>jakarta.annotation</groupId>
@@ -284,15 +284,20 @@
284284
<scope>provided</scope>
285285
</dependency>
286286
<dependency>
287-
<groupId>jakarta.authentication</groupId>
288-
<artifactId>jakarta.authentication-api</artifactId>
289-
<scope>provided</scope>
287+
<groupId>jakarta.websocket</groupId>
288+
<artifactId>jakarta.websocket-api</artifactId>
289+
<scope>test</scope>
290290
</dependency>
291291
<dependency>
292292
<groupId>jakarta.websocket</groupId>
293-
<artifactId>jakarta.websocket-api</artifactId>
293+
<artifactId>jakarta.websocket-client-api</artifactId>
294294
<scope>test</scope>
295295
</dependency>
296+
<dependency>
297+
<groupId>jakarta.authentication</groupId>
298+
<artifactId>jakarta.authentication-api</artifactId>
299+
<scope>provided</scope>
300+
</dependency>
296301

297302
<!-- Tomcat -->
298303

@@ -321,7 +326,7 @@
321326
</dependency>
322327
<dependency>
323328
<groupId>org.apache.logging.log4j</groupId>
324-
<artifactId>log4j-slf4j-impl</artifactId>
329+
<artifactId>log4j-slf4j2-impl</artifactId>
325330
<scope>test</scope>
326331
</dependency>
327332

@@ -352,8 +357,18 @@
352357
<!-- Testing -->
353358

354359
<dependency>
355-
<groupId>junit</groupId>
356-
<artifactId>junit</artifactId>
360+
<groupId>org.junit.jupiter</groupId>
361+
<artifactId>junit-jupiter-api</artifactId>
362+
<scope>test</scope>
363+
</dependency>
364+
<dependency>
365+
<groupId>org.junit.jupiter</groupId>
366+
<artifactId>junit-jupiter-engine</artifactId>
367+
<scope>test</scope>
368+
</dependency>
369+
<dependency>
370+
<groupId>org.assertj</groupId>
371+
<artifactId>assertj-core</artifactId>
357372
<scope>test</scope>
358373
</dependency>
359374
<dependency>

0 commit comments

Comments
 (0)