diff --git a/core/example/src/example/Book.java b/core/example/src/example/Book.java
index 9b69ec50dc..d57bcd55ba 100644
--- a/core/example/src/example/Book.java
+++ b/core/example/src/example/Book.java
@@ -1,7 +1,7 @@
package example;
+import jakarta.servlet.ServletException;
import java.io.IOException;
-import javax.servlet.ServletException;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
diff --git a/core/example/src/example/BookStore.java b/core/example/src/example/BookStore.java
index b1aced2332..a9a3b690a3 100644
--- a/core/example/src/example/BookStore.java
+++ b/core/example/src/example/BookStore.java
@@ -1,9 +1,9 @@
package example;
+import jakarta.servlet.ServletException;
import java.io.IOException;
import java.util.Hashtable;
import java.util.Map;
-import javax.servlet.ServletException;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
diff --git a/core/example/src/example/WebAppMain.java b/core/example/src/example/WebAppMain.java
index a832fcc505..2912a6ff80 100644
--- a/core/example/src/example/WebAppMain.java
+++ b/core/example/src/example/WebAppMain.java
@@ -1,7 +1,7 @@
package example;
-import javax.servlet.ServletContextEvent;
-import javax.servlet.ServletContextListener;
+import jakarta.servlet.ServletContextEvent;
+import jakarta.servlet.ServletContextListener;
import org.kohsuke.stapler.Stapler;
/**
diff --git a/core/maven-example/pom.xml b/core/maven-example/pom.xml
index 372fd2e2a1..3741f48006 100644
--- a/core/maven-example/pom.xml
+++ b/core/maven-example/pom.xml
@@ -16,21 +16,21 @@
1.253
- javax.servlet.jsp.jstl
- javax.servlet.jsp.jstl-api
- 1.2.1
+ jakarta.servlet.jsp.jstl
+ jakarta.servlet.jsp.jstl-api
+ 2.0.0
- javax.servlet
- javax.servlet-api
- 3.1.0
+ jakarta.servlet
+ jakarta.servlet-api
+ 5.0.0
provided
- javax.servlet.jsp
- javax.servlet.jsp-api
- 2.3.0
+ jakarta.servlet.jsp
+ jakarta.servlet.jsp-api
+ 3.0.0
provided
diff --git a/core/maven-example/src/main/java/example/Book.java b/core/maven-example/src/main/java/example/Book.java
index 9b69ec50dc..d57bcd55ba 100644
--- a/core/maven-example/src/main/java/example/Book.java
+++ b/core/maven-example/src/main/java/example/Book.java
@@ -1,7 +1,7 @@
package example;
+import jakarta.servlet.ServletException;
import java.io.IOException;
-import javax.servlet.ServletException;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
diff --git a/core/maven-example/src/main/java/example/BookStore.java b/core/maven-example/src/main/java/example/BookStore.java
index b1aced2332..a9a3b690a3 100644
--- a/core/maven-example/src/main/java/example/BookStore.java
+++ b/core/maven-example/src/main/java/example/BookStore.java
@@ -1,9 +1,9 @@
package example;
+import jakarta.servlet.ServletException;
import java.io.IOException;
import java.util.Hashtable;
import java.util.Map;
-import javax.servlet.ServletException;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
diff --git a/core/maven-example/src/main/java/example/WebAppMain.java b/core/maven-example/src/main/java/example/WebAppMain.java
index a832fcc505..2912a6ff80 100644
--- a/core/maven-example/src/main/java/example/WebAppMain.java
+++ b/core/maven-example/src/main/java/example/WebAppMain.java
@@ -1,7 +1,7 @@
package example;
-import javax.servlet.ServletContextEvent;
-import javax.servlet.ServletContextListener;
+import jakarta.servlet.ServletContextEvent;
+import jakarta.servlet.ServletContextListener;
import org.kohsuke.stapler.Stapler;
/**
diff --git a/core/pom.xml b/core/pom.xml
index 912ec1f1c8..444b40bce5 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -10,7 +10,18 @@
stapler
Stapler
Stapler HTTP request handling engine
+
+
+ 1.29
+ 2.0.0-M2
+
+
+
+ com.infradna.tool
+ bridge-method-annotation
+ ${bridge-method-injector.version}
+
com.jcraft
jzlib
@@ -38,12 +49,6 @@
commons-discovery
0.5
-
-
- commons-fileupload
- commons-fileupload
- 1.5
-
commons-io
commons-io
@@ -63,6 +68,17 @@
javax.annotation-api
1.3.2
+
+
+ org.apache.commons
+ commons-fileupload2-core
+ ${commons-fileupload2.version}
+
+
+ org.apache.commons
+ commons-fileupload2-jakarta-servlet5
+ ${commons-fileupload2.version}
+
+ 1.1-jenkins-20240511-rc190.1f3a_71a_da_db_2
137.v803fea_a_fb_c75
@@ -48,7 +49,7 @@
jakarta.servlet
jakarta.servlet-api
- 4.0.4
+ 5.0.0
provided
@@ -67,17 +68,17 @@
org.eclipse.jetty
- jetty-servlet
+ jetty-util
test
- org.eclipse.jetty
- jetty-util
+ org.eclipse.jetty.ee9
+ jetty-ee9-servlet
test
- org.eclipse.jetty
- jetty-webapp
+ org.eclipse.jetty.ee9
+ jetty-ee9-webapp
test
diff --git a/jelly/src/main/java/org/kohsuke/stapler/framework/adjunct/AdjunctManager.java b/jelly/src/main/java/org/kohsuke/stapler/framework/adjunct/AdjunctManager.java
index aa97e0cb47..3e7796c7e4 100644
--- a/jelly/src/main/java/org/kohsuke/stapler/framework/adjunct/AdjunctManager.java
+++ b/jelly/src/main/java/org/kohsuke/stapler/framework/adjunct/AdjunctManager.java
@@ -23,13 +23,13 @@
package org.kohsuke.stapler.framework.adjunct;
+import jakarta.servlet.ServletContext;
+import jakarta.servlet.ServletException;
+import jakarta.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.net.URL;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentSkipListSet;
-import javax.servlet.ServletContext;
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServletResponse;
import org.kohsuke.stapler.HttpResponses;
import org.kohsuke.stapler.MetaClass;
import org.kohsuke.stapler.StaplerRequest;
diff --git a/jelly/src/main/java/org/kohsuke/stapler/jelly/AbstractStaplerTag.java b/jelly/src/main/java/org/kohsuke/stapler/jelly/AbstractStaplerTag.java
index 919a00f1aa..340c597eb3 100644
--- a/jelly/src/main/java/org/kohsuke/stapler/jelly/AbstractStaplerTag.java
+++ b/jelly/src/main/java/org/kohsuke/stapler/jelly/AbstractStaplerTag.java
@@ -23,9 +23,9 @@
package org.kohsuke.stapler.jelly;
-import javax.servlet.ServletContext;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
+import jakarta.servlet.ServletContext;
+import jakarta.servlet.http.HttpServletRequest;
+import jakarta.servlet.http.HttpServletResponse;
import org.apache.commons.jelly.TagSupport;
/**
diff --git a/jelly/src/main/java/org/kohsuke/stapler/jelly/ContentTypeTag.java b/jelly/src/main/java/org/kohsuke/stapler/jelly/ContentTypeTag.java
index f75cbc6a0b..0c7c6ae3f7 100644
--- a/jelly/src/main/java/org/kohsuke/stapler/jelly/ContentTypeTag.java
+++ b/jelly/src/main/java/org/kohsuke/stapler/jelly/ContentTypeTag.java
@@ -23,7 +23,7 @@
package org.kohsuke.stapler.jelly;
-import javax.servlet.http.HttpServletResponse;
+import jakarta.servlet.http.HttpServletResponse;
import org.apache.commons.jelly.JellyTagException;
import org.apache.commons.jelly.MissingAttributeException;
import org.apache.commons.jelly.XMLOutput;
diff --git a/jelly/src/main/java/org/kohsuke/stapler/jelly/DefaultScriptInvoker.java b/jelly/src/main/java/org/kohsuke/stapler/jelly/DefaultScriptInvoker.java
index 76f8c19a7d..0ce441455a 100644
--- a/jelly/src/main/java/org/kohsuke/stapler/jelly/DefaultScriptInvoker.java
+++ b/jelly/src/main/java/org/kohsuke/stapler/jelly/DefaultScriptInvoker.java
@@ -25,12 +25,12 @@
import edu.umd.cs.findbugs.annotations.NonNull;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
+import jakarta.servlet.ServletContext;
import java.io.BufferedOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.Writer;
import java.util.Enumeration;
-import javax.servlet.ServletContext;
import org.apache.commons.jelly.JellyContext;
import org.apache.commons.jelly.JellyTagException;
import org.apache.commons.jelly.Script;
diff --git a/jelly/src/main/java/org/kohsuke/stapler/jelly/IsUserInRoleTag.java b/jelly/src/main/java/org/kohsuke/stapler/jelly/IsUserInRoleTag.java
index 83def59af5..65b7bd1ad8 100644
--- a/jelly/src/main/java/org/kohsuke/stapler/jelly/IsUserInRoleTag.java
+++ b/jelly/src/main/java/org/kohsuke/stapler/jelly/IsUserInRoleTag.java
@@ -23,7 +23,7 @@
package org.kohsuke.stapler.jelly;
-import javax.servlet.http.HttpServletRequest;
+import jakarta.servlet.http.HttpServletRequest;
import org.apache.commons.jelly.JellyTagException;
import org.apache.commons.jelly.MissingAttributeException;
import org.apache.commons.jelly.XMLOutput;
diff --git a/jelly/src/main/java/org/kohsuke/stapler/jelly/JellyClassTearOff.java b/jelly/src/main/java/org/kohsuke/stapler/jelly/JellyClassTearOff.java
index 11f42edf4d..0f5fadc96e 100644
--- a/jelly/src/main/java/org/kohsuke/stapler/jelly/JellyClassTearOff.java
+++ b/jelly/src/main/java/org/kohsuke/stapler/jelly/JellyClassTearOff.java
@@ -23,11 +23,11 @@
package org.kohsuke.stapler.jelly;
+import jakarta.servlet.RequestDispatcher;
+import jakarta.servlet.ServletException;
import java.io.IOException;
import java.net.URL;
import java.util.logging.Logger;
-import javax.servlet.RequestDispatcher;
-import javax.servlet.ServletException;
import org.apache.commons.jelly.JellyException;
import org.apache.commons.jelly.Script;
import org.kohsuke.stapler.AbstractTearOff;
diff --git a/jelly/src/main/java/org/kohsuke/stapler/jelly/JellyFacet.java b/jelly/src/main/java/org/kohsuke/stapler/jelly/JellyFacet.java
index a4610e1001..53cafa4a6f 100644
--- a/jelly/src/main/java/org/kohsuke/stapler/jelly/JellyFacet.java
+++ b/jelly/src/main/java/org/kohsuke/stapler/jelly/JellyFacet.java
@@ -25,15 +25,15 @@
import edu.umd.cs.findbugs.annotations.NonNull;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
+import jakarta.servlet.RequestDispatcher;
+import jakarta.servlet.ServletContextEvent;
+import jakarta.servlet.ServletContextListener;
+import jakarta.servlet.ServletException;
import java.io.IOException;
import java.util.Collection;
import java.util.List;
import java.util.Set;
import java.util.logging.Level;
-import javax.servlet.RequestDispatcher;
-import javax.servlet.ServletContextEvent;
-import javax.servlet.ServletContextListener;
-import javax.servlet.ServletException;
import org.apache.commons.jelly.JellyException;
import org.apache.commons.jelly.expression.ExpressionFactory;
import org.kohsuke.MetaInfServices;
diff --git a/jelly/src/main/java/org/kohsuke/stapler/jelly/JellyRequestDispatcher.java b/jelly/src/main/java/org/kohsuke/stapler/jelly/JellyRequestDispatcher.java
index 61c64c368c..9d0a83a6c7 100644
--- a/jelly/src/main/java/org/kohsuke/stapler/jelly/JellyRequestDispatcher.java
+++ b/jelly/src/main/java/org/kohsuke/stapler/jelly/JellyRequestDispatcher.java
@@ -24,11 +24,11 @@
package org.kohsuke.stapler.jelly;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
+import jakarta.servlet.RequestDispatcher;
+import jakarta.servlet.ServletException;
+import jakarta.servlet.ServletRequest;
+import jakarta.servlet.ServletResponse;
import java.io.IOException;
-import javax.servlet.RequestDispatcher;
-import javax.servlet.ServletException;
-import javax.servlet.ServletRequest;
-import javax.servlet.ServletResponse;
import org.apache.commons.jelly.JellyTagException;
import org.apache.commons.jelly.Script;
import org.kohsuke.stapler.StaplerRequest;
diff --git a/jelly/src/main/java/org/kohsuke/stapler/jelly/StaplerTagLibrary.java b/jelly/src/main/java/org/kohsuke/stapler/jelly/StaplerTagLibrary.java
index 3de84e961c..5da6953368 100644
--- a/jelly/src/main/java/org/kohsuke/stapler/jelly/StaplerTagLibrary.java
+++ b/jelly/src/main/java/org/kohsuke/stapler/jelly/StaplerTagLibrary.java
@@ -24,9 +24,9 @@
package org.kohsuke.stapler.jelly;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
+import jakarta.servlet.http.HttpServletRequest;
import java.util.HashSet;
import java.util.Set;
-import javax.servlet.http.HttpServletRequest;
import org.apache.commons.jelly.JellyContext;
import org.apache.commons.jelly.JellyException;
import org.apache.commons.jelly.JellyTagException;
diff --git a/jelly/src/test/java/org/kohsuke/stapler/jelly/issue76/ProtectedClass.java b/jelly/src/test/java/org/kohsuke/stapler/jelly/issue76/ProtectedClass.java
index 1fe3d0ab2d..9de40c241e 100644
--- a/jelly/src/test/java/org/kohsuke/stapler/jelly/issue76/ProtectedClass.java
+++ b/jelly/src/test/java/org/kohsuke/stapler/jelly/issue76/ProtectedClass.java
@@ -1,10 +1,10 @@
package org.kohsuke.stapler.jelly.issue76;
+import jakarta.servlet.ServletException;
import java.lang.reflect.InvocationTargetException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
-import javax.servlet.ServletException;
import org.kohsuke.stapler.ForwardingFunction;
import org.kohsuke.stapler.Function;
import org.kohsuke.stapler.FunctionList;
diff --git a/jrebel/pom.xml b/jrebel/pom.xml
index 84753c0225..434e3e92eb 100644
--- a/jrebel/pom.xml
+++ b/jrebel/pom.xml
@@ -25,7 +25,7 @@
jakarta.servlet
jakarta.servlet-api
- 4.0.4
+ 5.0.0
provided
diff --git a/jrebel/src/main/java/org/kohsuke/stapler/JRebelFacet.java b/jrebel/src/main/java/org/kohsuke/stapler/JRebelFacet.java
index a38dc69353..04cf16b10b 100644
--- a/jrebel/src/main/java/org/kohsuke/stapler/JRebelFacet.java
+++ b/jrebel/src/main/java/org/kohsuke/stapler/JRebelFacet.java
@@ -1,12 +1,12 @@
package org.kohsuke.stapler;
+import jakarta.servlet.RequestDispatcher;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.logging.Level;
import java.util.logging.Logger;
-import javax.servlet.RequestDispatcher;
import org.kohsuke.MetaInfServices;
import org.kohsuke.stapler.export.ModelBuilder;
import org.kohsuke.stapler.lang.Klass;
diff --git a/jsp/pom.xml b/jsp/pom.xml
index d147146549..f98be563af 100644
--- a/jsp/pom.xml
+++ b/jsp/pom.xml
@@ -25,13 +25,13 @@
jakarta.servlet
jakarta.servlet-api
- 4.0.4
+ 5.0.0
provided
jakarta.servlet.jsp
jakarta.servlet.jsp-api
- 2.3.6
+ 3.0.0
provided
diff --git a/jsp/src/main/java/org/kohsuke/stapler/jsp/JSPFacet.java b/jsp/src/main/java/org/kohsuke/stapler/jsp/JSPFacet.java
index c147e8e213..6fac668b05 100644
--- a/jsp/src/main/java/org/kohsuke/stapler/jsp/JSPFacet.java
+++ b/jsp/src/main/java/org/kohsuke/stapler/jsp/JSPFacet.java
@@ -23,12 +23,12 @@
package org.kohsuke.stapler.jsp;
+import jakarta.servlet.RequestDispatcher;
+import jakarta.servlet.ServletContext;
+import jakarta.servlet.ServletException;
import java.io.IOException;
import java.util.List;
import java.util.logging.Level;
-import javax.servlet.RequestDispatcher;
-import javax.servlet.ServletContext;
-import javax.servlet.ServletException;
import org.kohsuke.MetaInfServices;
import org.kohsuke.stapler.Dispatcher;
import org.kohsuke.stapler.Facet;
diff --git a/jsp/src/main/java/org/kohsuke/stapler/jsp/RequestDispatcherWrapper.java b/jsp/src/main/java/org/kohsuke/stapler/jsp/RequestDispatcherWrapper.java
index b5676f342a..ce437daac4 100644
--- a/jsp/src/main/java/org/kohsuke/stapler/jsp/RequestDispatcherWrapper.java
+++ b/jsp/src/main/java/org/kohsuke/stapler/jsp/RequestDispatcherWrapper.java
@@ -24,11 +24,11 @@
package org.kohsuke.stapler.jsp;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
+import jakarta.servlet.RequestDispatcher;
+import jakarta.servlet.ServletException;
+import jakarta.servlet.ServletRequest;
+import jakarta.servlet.ServletResponse;
import java.io.IOException;
-import javax.servlet.RequestDispatcher;
-import javax.servlet.ServletException;
-import javax.servlet.ServletRequest;
-import javax.servlet.ServletResponse;
/**
* {@link RequestDispatcher} that sets "it" before the invocation.
diff --git a/jsp/src/main/java/org/kohsuke/stapler/tags/Include.java b/jsp/src/main/java/org/kohsuke/stapler/tags/Include.java
index 1ad6a4955f..a90a04d656 100644
--- a/jsp/src/main/java/org/kohsuke/stapler/tags/Include.java
+++ b/jsp/src/main/java/org/kohsuke/stapler/tags/Include.java
@@ -24,18 +24,18 @@
package org.kohsuke.stapler.tags;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
+import jakarta.servlet.RequestDispatcher;
+import jakarta.servlet.ServletConfig;
+import jakarta.servlet.ServletContext;
+import jakarta.servlet.ServletException;
+import jakarta.servlet.http.HttpServletRequest;
+import jakarta.servlet.http.HttpServletResponse;
+import jakarta.servlet.http.HttpServletResponseWrapper;
+import jakarta.servlet.jsp.JspException;
+import jakarta.servlet.jsp.PageContext;
+import jakarta.servlet.jsp.tagext.SimpleTagSupport;
import java.io.IOException;
import java.io.PrintWriter;
-import javax.servlet.RequestDispatcher;
-import javax.servlet.ServletConfig;
-import javax.servlet.ServletContext;
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import javax.servlet.http.HttpServletResponseWrapper;
-import javax.servlet.jsp.JspException;
-import javax.servlet.jsp.PageContext;
-import javax.servlet.jsp.tagext.SimpleTagSupport;
/**
* Includes a side JSP file for the "it" object.
diff --git a/pom.xml b/pom.xml
index 6387bd6f73..0339c502b6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -44,8 +44,10 @@
999999-SNAPSHOT
HEAD
- 10.0.20
+ 12.0.9
jenkinsci/stapler
+
+ 17
@@ -57,6 +59,13 @@
pom
import
+
+ org.eclipse.jetty.ee9
+ jetty-ee9-bom
+ ${jetty.version}
+ pom
+ import
+
commons-logging
commons-logging