Downgrade Jakarta Servlet API to 5.0 when using Jetty
MSALJetty does not yet support Servlet 6.0. This recipe will detect the presence of the spring-boot-starter-jetty as a first-order dependency and will add the maven property jakarta-servlet.version setting it's value to 5.0.0. This will downgrade the jakarta-servlet artifact if the pom's parent extends from the spring-boot-parent.
org. openrewrite. java. spring. boot3. DowngradeServletApiWhenUsingJettymod run . --recipe= org. openrewrite. java. spring. boot3. DowngradeServletApiWhenUsingJettyInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.