Visitar URL original
Add `JettyUpgradeEE11` to migrate Jetty EE10 to EE11 by timtebeek · Pull Request #1401 · openrewrite/rewrite-migrate-java · GitHub
Skip to content

Add JettyUpgradeEE11 to migrate Jetty EE10 to EE11 - #1401

Merged
timtebeek merged 1 commit into
mainfrom
jetty-ee10-to-ee11
Nov 2, 2026
Merged

timtebeek merged 1 commit into
mainfrom
jetty-ee10-to-ee11

Conversation

@timtebeek

@timtebeek timtebeek commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

What's changed

Add org.openrewrite.java.migrate.jakarta.JettyUpgradeEE11, alongside the existing JettyUpgradeEE10, and include it in JakartaEE11:

  • a recursive ChangePackage from org.eclipse.jetty.ee10 to org.eclipse.jetty.ee11
  • a ChangeDependency for each of the 20 org.eclipse.jetty.ee10 and org.eclipse.jetty.ee10.websocket artifacts that has a one-to-one ee11 counterpart, at 12.1.x

What's your motivation?

Jetty 12.1 adds the EE11 environment, and Spring Boot 4.0 moved to it: it imports jetty-ee11-bom instead of jetty-ee10-bom, and spring-boot-jetty depends on jetty-ee11-webapp. Code importing org.eclipse.jetty.ee10.* then stops compiling, as seen in yahoo/elide-spring-boot-example while validating the Spring Boot 4.1 migration.

Any additional context

  • Artifact mapping was checked by comparing jetty-ee10-bom 12.0.15 with jetty-ee11-bom 12.1.14. jetty-ee10-runner, the OSGi artifacts and the Maven plugins have no one-to-one counterpart and are left alone.
  • A few internals (WebAppClassLoader, ClassMatcher, AnnotationParser) do not exist under the same name in ee11; code using those still needs a manual change.
  • recipes.csv only has this change's rows; regenerating it here also produced unrelated snapshot drift, which is left out.

@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Nov 2, 2026
@timtebeek
timtebeek enabled auto-merge (squash) November 2, 2026 15:56
@timtebeek
timtebeek merged commit 7db6911 into main Nov 2, 2026
1 check passed
@timtebeek
timtebeek deleted the jetty-ee10-to-ee11 branch November 2, 2026 15:57
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant