From 3f566c2b7bd93868107d5b2b7356550eb566fab5 Mon Sep 17 00:00:00 2001 From: Basil Crow Date: Wed, 15 May 2024 17:11:18 -0700 Subject: [PATCH] EE 8 to EE 9 --- core/example/src/example/Book.java | 2 +- core/example/src/example/BookStore.java | 2 +- core/example/src/example/WebAppMain.java | 4 +- core/maven-example/pom.xml | 18 +- .../src/main/java/example/Book.java | 2 +- .../src/main/java/example/BookStore.java | 2 +- .../src/main/java/example/WebAppMain.java | 4 +- core/pom.xml | 50 +- .../main/java/javax/servlet/AsyncContext.java | 58 ++ .../main/java/javax/servlet/AsyncEvent.java | 60 ++ .../java/javax/servlet/AsyncListener.java | 31 + .../java/javax/servlet/DispatcherType.java | 60 ++ core/src/main/java/javax/servlet/Filter.java | 123 +++ .../main/java/javax/servlet/FilterChain.java | 80 ++ .../main/java/javax/servlet/FilterConfig.java | 84 ++ .../javax/servlet/FilterRegistration.java | 350 +++++++ .../java/javax/servlet/GenericFilter.java | 84 ++ .../java/javax/servlet/GenericServlet.java | 106 ++ .../javax/servlet/HttpConstraintElement.java | 73 ++ .../servlet/HttpMethodConstraintElement.java | 41 + .../javax/servlet/MultipartConfigElement.java | 72 ++ .../main/java/javax/servlet/ReadListener.java | 72 ++ .../main/java/javax/servlet/Registration.java | 200 ++++ .../java/javax/servlet/RequestDispatcher.java | 158 +++ core/src/main/java/javax/servlet/Servlet.java | 135 +++ .../java/javax/servlet/ServletConfig.java | 84 ++ .../servlet/ServletContainerInitializer.java | 24 + .../java/javax/servlet/ServletContext.java | 825 +++++++++++++++ .../servlet/ServletContextAttributeEvent.java | 40 + .../ServletContextAttributeListener.java | 29 + .../javax/servlet/ServletContextEvent.java | 39 + .../javax/servlet/ServletContextListener.java | 27 + .../java/javax/servlet/ServletException.java | 47 + .../javax/servlet/ServletInputStream.java | 233 +++++ .../javax/servlet/ServletOutputStream.java | 344 ++++++ .../javax/servlet/ServletRegistration.java | 321 ++++++ .../java/javax/servlet/ServletRequest.java | 521 ++++++++++ .../servlet/ServletRequestAttributeEvent.java | 40 + .../ServletRequestAttributeListener.java | 29 + .../javax/servlet/ServletRequestEvent.java | 38 + .../javax/servlet/ServletRequestListener.java | 27 + .../javax/servlet/ServletRequestWrapper.java | 280 +++++ .../java/javax/servlet/ServletResponse.java | 238 +++++ .../javax/servlet/ServletResponseWrapper.java | 155 +++ .../javax/servlet/ServletSecurityElement.java | 88 ++ .../javax/servlet/SessionCookieConfig.java | 201 ++++ .../javax/servlet/SessionTrackingMode.java | 50 + .../java/javax/servlet/SingleThreadModel.java | 22 + .../javax/servlet/UnavailableException.java | 71 ++ .../java/javax/servlet/WriteListener.java | 60 ++ .../servlet/annotation/HandlesTypes.java | 29 + .../servlet/annotation/HttpConstraint.java | 34 + .../annotation/HttpMethodConstraint.java | 36 + .../servlet/annotation/MultipartConfig.java | 35 + .../servlet/annotation/ServletSecurity.java | 47 + .../javax/servlet/annotation/WebFilter.java | 52 + .../servlet/annotation/WebInitParam.java | 35 + .../javax/servlet/annotation/WebListener.java | 31 + .../javax/servlet/annotation/WebServlet.java | 49 + .../descriptor/JspConfigDescriptor.java | 68 ++ .../JspPropertyGroupDescriptor.java | 180 ++++ .../servlet/descriptor/TaglibDescriptor.java | 57 + .../main/java/javax/servlet/http/Cookie.java | 212 ++++ .../java/javax/servlet/http/HttpFilter.java | 46 + .../java/javax/servlet/http/HttpServlet.java | 416 ++++++++ .../servlet/http/HttpServletMapping.java | 81 ++ .../servlet/http/HttpServletRequest.java | 984 ++++++++++++++++++ .../http/HttpServletRequestWrapper.java | 239 +++++ .../servlet/http/HttpServletResponse.java | 582 +++++++++++ .../http/HttpServletResponseWrapper.java | 155 +++ .../java/javax/servlet/http/HttpSession.java | 246 +++++ .../http/HttpSessionActivationListener.java | 27 + .../http/HttpSessionAttributeListener.java | 29 + .../servlet/http/HttpSessionBindingEvent.java | 51 + .../http/HttpSessionBindingListener.java | 27 + .../servlet/http/HttpSessionContext.java | 63 ++ .../javax/servlet/http/HttpSessionEvent.java | 31 + .../servlet/http/HttpSessionIdListener.java | 24 + .../servlet/http/HttpSessionListener.java | 27 + .../servlet/http/HttpUpgradeHandler.java | 24 + .../java/javax/servlet/http/HttpUtils.java | 147 +++ .../java/javax/servlet/http/MappingMatch.java | 60 ++ .../main/java/javax/servlet/http/Part.java | 157 +++ .../java/javax/servlet/http/PushBuilder.java | 50 + .../javax/servlet/http/WebConnection.java | 28 + .../apache/commons/fileupload/FileItem.java | 436 ++++++++ .../commons/fileupload/FileItemHeaders.java | 121 +++ .../fileupload/InvalidFileNameException.java | 61 ++ .../org/kohsuke/stapler/AcceptHeader.java | 2 +- .../java/org/kohsuke/stapler/Ancestor.java | 2 +- .../org/kohsuke/stapler/AncestorInPath.java | 2 +- .../kohsuke/stapler/AnnotationHandler.java | 2 +- .../org/kohsuke/stapler/AttributeKey.java | 6 +- .../org/kohsuke/stapler/CompatibleFilter.java | 52 + .../java/org/kohsuke/stapler/CrumbIssuer.java | 2 +- .../stapler/DiagnosticThreadNameFilter.java | 16 +- .../stapler/DirectoryishDispatcher.java | 2 +- .../java/org/kohsuke/stapler/Dispatcher.java | 2 +- .../main/java/org/kohsuke/stapler/Facet.java | 4 +- .../org/kohsuke/stapler/ForwardToView.java | 4 +- .../kohsuke/stapler/ForwardingFunction.java | 2 +- .../java/org/kohsuke/stapler/Function.java | 10 +- .../main/java/org/kohsuke/stapler/Header.java | 2 +- .../org/kohsuke/stapler/HttpDeletable.java | 2 +- .../org/kohsuke/stapler/HttpRedirect.java | 4 +- .../org/kohsuke/stapler/HttpResponse.java | 2 +- .../kohsuke/stapler/HttpResponseRenderer.java | 2 +- .../org/kohsuke/stapler/HttpResponses.java | 4 +- .../org/kohsuke/stapler/IndexDispatcher.java | 2 +- .../kohsuke/stapler/IndexHtmlDispatcher.java | 4 +- .../kohsuke/stapler/IndexViewDispatcher.java | 2 +- .../java/org/kohsuke/stapler/LimitedTo.java | 2 +- .../java/org/kohsuke/stapler/MetaClass.java | 6 +- .../kohsuke/stapler/NameBasedDispatcher.java | 2 +- .../stapler/PreInvokeInterceptedFunction.java | 2 +- .../org/kohsuke/stapler/QueryParameter.java | 2 +- .../java/org/kohsuke/stapler/RequestImpl.java | 148 ++- .../org/kohsuke/stapler/ResponseImpl.java | 43 +- .../stapler/ScriptRequestDispatcher.java | 8 +- .../stapler/SelectionInterceptedFunction.java | 2 +- .../java/org/kohsuke/stapler/Stapler.java | 55 +- .../org/kohsuke/stapler/StaplerRequest.java | 20 +- .../org/kohsuke/stapler/StaplerResponse.java | 28 +- .../stapler/StaplerResponseWrapper.java | 8 +- .../org/kohsuke/stapler/StaticViewFacet.java | 12 +- .../main/java/org/kohsuke/stapler/WebApp.java | 33 +- .../stapler/bind/BoundObjectTable.java | 4 +- .../compression/CompressionFilter.java | 20 +- .../CompressionServletResponse.java | 6 +- .../FilterServletOutputStream.java | 4 +- .../compression/UncaughtExceptionHandler.java | 8 +- .../stapler/framework/AbstractWebAppMain.java | 6 +- .../stapler/framework/io/LargeText.java | 2 +- .../stapler/interceptor/Interceptor.java | 2 +- .../stapler/interceptor/JsonOutputFilter.java | 2 +- .../stapler/interceptor/RequirePOST.java | 4 +- .../stapler/interceptor/RespondSuccess.java | 2 +- .../org/kohsuke/stapler/json/JsonBody.java | 2 +- .../stapler/json/JsonHttpResponse.java | 2 +- .../kohsuke/stapler/json/JsonResponse.java | 2 +- .../kohsuke/stapler/json/SubmittedForm.java | 2 +- .../stapler/verb/HttpVerbInterceptor.java | 2 +- .../javax/servlet/LocalStrings.properties | 24 + .../javax/servlet/LocalStrings_fr.properties | 25 + .../javax/servlet/LocalStrings_ja.properties | 23 + .../servlet/http/LocalStrings.properties | 34 + .../servlet/http/LocalStrings_es.properties | 32 + .../servlet/http/LocalStrings_fr.properties | 30 + .../servlet/http/LocalStrings_ja.properties | 30 + .../stapler/AbstractStaplerTestBase.java | 8 +- .../kohsuke/stapler/ClassDescriptorTest.java | 2 +- .../org/kohsuke/stapler/DispatcherTest.java | 2 +- .../stapler/IndexHtmlDispatcherTest.java | 2 +- .../java/org/kohsuke/stapler/MockRequest.java | 28 +- .../kohsuke/stapler/MockServletContext.java | 28 +- .../org/kohsuke/stapler/NestedJsonTest.java | 2 +- .../org/kohsuke/stapler/RequestImplTest.java | 12 +- .../org/kohsuke/stapler/ResponseImplTest.java | 6 +- .../kohsuke/stapler/ServletConfigImpl.java | 4 +- .../org/kohsuke/stapler/Stapler2Test.java | 2 +- .../compression/CompressionFilterTest.java | 4 +- .../kohsuke/stapler/test/JettyTestCase.java | 8 +- docs/getting-started.adoc | 2 +- groovy/pom.xml | 2 +- .../jelly/groovy/GroovyClassTearOff.java | 2 +- .../stapler/jelly/groovy/GroovyFacet.java | 4 +- .../jelly/groovy/GroovyServerPageTearOff.java | 2 +- .../stapler/jelly/groovy/JellyBuilder.java | 2 +- jelly/pom.xml | 13 +- .../framework/adjunct/AdjunctManager.java | 6 +- .../stapler/jelly/AbstractStaplerTag.java | 6 +- .../kohsuke/stapler/jelly/ContentTypeTag.java | 2 +- .../stapler/jelly/DefaultScriptInvoker.java | 2 +- .../stapler/jelly/IsUserInRoleTag.java | 2 +- .../stapler/jelly/JellyClassTearOff.java | 4 +- .../org/kohsuke/stapler/jelly/JellyFacet.java | 8 +- .../stapler/jelly/JellyRequestDispatcher.java | 8 +- .../stapler/jelly/StaplerTagLibrary.java | 2 +- .../stapler/jelly/issue76/ProtectedClass.java | 2 +- jrebel/pom.xml | 2 +- .../java/org/kohsuke/stapler/JRebelFacet.java | 2 +- jsp/pom.xml | 4 +- .../org/kohsuke/stapler/jsp/JSPFacet.java | 6 +- .../stapler/jsp/RequestDispatcherWrapper.java | 8 +- .../org/kohsuke/stapler/tags/Include.java | 20 +- pom.xml | 4 +- 186 files changed, 11385 insertions(+), 290 deletions(-) create mode 100644 core/src/main/java/javax/servlet/AsyncContext.java create mode 100644 core/src/main/java/javax/servlet/AsyncEvent.java create mode 100644 core/src/main/java/javax/servlet/AsyncListener.java create mode 100644 core/src/main/java/javax/servlet/DispatcherType.java create mode 100644 core/src/main/java/javax/servlet/Filter.java create mode 100644 core/src/main/java/javax/servlet/FilterChain.java create mode 100644 core/src/main/java/javax/servlet/FilterConfig.java create mode 100644 core/src/main/java/javax/servlet/FilterRegistration.java create mode 100644 core/src/main/java/javax/servlet/GenericFilter.java create mode 100644 core/src/main/java/javax/servlet/GenericServlet.java create mode 100644 core/src/main/java/javax/servlet/HttpConstraintElement.java create mode 100644 core/src/main/java/javax/servlet/HttpMethodConstraintElement.java create mode 100644 core/src/main/java/javax/servlet/MultipartConfigElement.java create mode 100644 core/src/main/java/javax/servlet/ReadListener.java create mode 100644 core/src/main/java/javax/servlet/Registration.java create mode 100644 core/src/main/java/javax/servlet/RequestDispatcher.java create mode 100644 core/src/main/java/javax/servlet/Servlet.java create mode 100644 core/src/main/java/javax/servlet/ServletConfig.java create mode 100644 core/src/main/java/javax/servlet/ServletContainerInitializer.java create mode 100644 core/src/main/java/javax/servlet/ServletContext.java create mode 100644 core/src/main/java/javax/servlet/ServletContextAttributeEvent.java create mode 100644 core/src/main/java/javax/servlet/ServletContextAttributeListener.java create mode 100644 core/src/main/java/javax/servlet/ServletContextEvent.java create mode 100644 core/src/main/java/javax/servlet/ServletContextListener.java create mode 100644 core/src/main/java/javax/servlet/ServletException.java create mode 100644 core/src/main/java/javax/servlet/ServletInputStream.java create mode 100644 core/src/main/java/javax/servlet/ServletOutputStream.java create mode 100644 core/src/main/java/javax/servlet/ServletRegistration.java create mode 100644 core/src/main/java/javax/servlet/ServletRequest.java create mode 100644 core/src/main/java/javax/servlet/ServletRequestAttributeEvent.java create mode 100644 core/src/main/java/javax/servlet/ServletRequestAttributeListener.java create mode 100644 core/src/main/java/javax/servlet/ServletRequestEvent.java create mode 100644 core/src/main/java/javax/servlet/ServletRequestListener.java create mode 100644 core/src/main/java/javax/servlet/ServletRequestWrapper.java create mode 100644 core/src/main/java/javax/servlet/ServletResponse.java create mode 100644 core/src/main/java/javax/servlet/ServletResponseWrapper.java create mode 100644 core/src/main/java/javax/servlet/ServletSecurityElement.java create mode 100644 core/src/main/java/javax/servlet/SessionCookieConfig.java create mode 100644 core/src/main/java/javax/servlet/SessionTrackingMode.java create mode 100644 core/src/main/java/javax/servlet/SingleThreadModel.java create mode 100644 core/src/main/java/javax/servlet/UnavailableException.java create mode 100644 core/src/main/java/javax/servlet/WriteListener.java create mode 100644 core/src/main/java/javax/servlet/annotation/HandlesTypes.java create mode 100644 core/src/main/java/javax/servlet/annotation/HttpConstraint.java create mode 100644 core/src/main/java/javax/servlet/annotation/HttpMethodConstraint.java create mode 100644 core/src/main/java/javax/servlet/annotation/MultipartConfig.java create mode 100644 core/src/main/java/javax/servlet/annotation/ServletSecurity.java create mode 100644 core/src/main/java/javax/servlet/annotation/WebFilter.java create mode 100644 core/src/main/java/javax/servlet/annotation/WebInitParam.java create mode 100644 core/src/main/java/javax/servlet/annotation/WebListener.java create mode 100644 core/src/main/java/javax/servlet/annotation/WebServlet.java create mode 100644 core/src/main/java/javax/servlet/descriptor/JspConfigDescriptor.java create mode 100644 core/src/main/java/javax/servlet/descriptor/JspPropertyGroupDescriptor.java create mode 100644 core/src/main/java/javax/servlet/descriptor/TaglibDescriptor.java create mode 100644 core/src/main/java/javax/servlet/http/Cookie.java create mode 100644 core/src/main/java/javax/servlet/http/HttpFilter.java create mode 100644 core/src/main/java/javax/servlet/http/HttpServlet.java create mode 100644 core/src/main/java/javax/servlet/http/HttpServletMapping.java create mode 100644 core/src/main/java/javax/servlet/http/HttpServletRequest.java create mode 100644 core/src/main/java/javax/servlet/http/HttpServletRequestWrapper.java create mode 100644 core/src/main/java/javax/servlet/http/HttpServletResponse.java create mode 100644 core/src/main/java/javax/servlet/http/HttpServletResponseWrapper.java create mode 100644 core/src/main/java/javax/servlet/http/HttpSession.java create mode 100644 core/src/main/java/javax/servlet/http/HttpSessionActivationListener.java create mode 100644 core/src/main/java/javax/servlet/http/HttpSessionAttributeListener.java create mode 100644 core/src/main/java/javax/servlet/http/HttpSessionBindingEvent.java create mode 100644 core/src/main/java/javax/servlet/http/HttpSessionBindingListener.java create mode 100644 core/src/main/java/javax/servlet/http/HttpSessionContext.java create mode 100644 core/src/main/java/javax/servlet/http/HttpSessionEvent.java create mode 100644 core/src/main/java/javax/servlet/http/HttpSessionIdListener.java create mode 100644 core/src/main/java/javax/servlet/http/HttpSessionListener.java create mode 100644 core/src/main/java/javax/servlet/http/HttpUpgradeHandler.java create mode 100644 core/src/main/java/javax/servlet/http/HttpUtils.java create mode 100644 core/src/main/java/javax/servlet/http/MappingMatch.java create mode 100644 core/src/main/java/javax/servlet/http/Part.java create mode 100644 core/src/main/java/javax/servlet/http/PushBuilder.java create mode 100644 core/src/main/java/javax/servlet/http/WebConnection.java create mode 100644 core/src/main/java/org/apache/commons/fileupload/FileItem.java create mode 100644 core/src/main/java/org/apache/commons/fileupload/FileItemHeaders.java create mode 100644 core/src/main/java/org/apache/commons/fileupload/InvalidFileNameException.java create mode 100644 core/src/main/java/org/kohsuke/stapler/CompatibleFilter.java create mode 100644 core/src/main/resources/javax/servlet/LocalStrings.properties create mode 100644 core/src/main/resources/javax/servlet/LocalStrings_fr.properties create mode 100644 core/src/main/resources/javax/servlet/LocalStrings_ja.properties create mode 100644 core/src/main/resources/javax/servlet/http/LocalStrings.properties create mode 100644 core/src/main/resources/javax/servlet/http/LocalStrings_es.properties create mode 100644 core/src/main/resources/javax/servlet/http/LocalStrings_fr.properties create mode 100644 core/src/main/resources/javax/servlet/http/LocalStrings_ja.properties 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 97753a1af7..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.971fe607b_14c 137.v803fea_a_fb_c75 @@ -48,7 +49,7 @@ jakarta.servlet jakarta.servlet-api - 4.0.4 + 5.0.0 provided @@ -71,13 +72,13 @@ test - org.eclipse.jetty.ee8 - jetty-ee8-servlet + org.eclipse.jetty.ee9 + jetty-ee9-servlet test - org.eclipse.jetty.ee8 - jetty-ee8-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 cde0d00d93..1a063ef4d8 100644 --- a/pom.xml +++ b/pom.xml @@ -60,8 +60,8 @@ import - org.eclipse.jetty.ee8 - jetty-ee8-bom + org.eclipse.jetty.ee9 + jetty-ee9-bom ${jetty.version} pom import