
Migrate javax to jakarta With OpenRewrite Step by Step
Run the OpenRewrite javax to jakarta recipe on a Maven or Gradle project, review the diff, fix the leftovers and verify the result with tests.
Tag
14 posts

Run the OpenRewrite javax to jakarta recipe on a Maven or Gradle project, review the diff, fix the leftovers and verify the result with tests.

Which javax packages to rename and which to leave, the places automated tools miss such as strings and descriptors, and how to verify a manual migration.

Migrate WebSecurityConfigurerAdapter to SecurityFilterChain, WebSecurityCustomizer and AuthenticationManager beans, with before and after code and pitfalls.

Move a Java EE 8 application to Jakarta EE 10: pick a server, rename javax to jakarta, update libraries, fix descriptors, test and roll out.

Upgrade a Vaadin application across a major version: baselines first, then the Vaadin BOM, compile fixes, themes, the production bundle and rollback.

Spring Security 7 migration notes: removal of and() chaining, deprecated API removal, request matcher changes and an upgrade path from 6.5.

Migrate JUnit 4 rules to JUnit 5 extensions: TemporaryFolder to TempDir, ExpectedException to assertThrows and custom rules to callbacks.

Migrate a Struts 1 application to Struts 2 in stages: run both side by side, convert actions, forms, validation and tags, and cut over by module.

Migrate a Play 2.8 application to Play 3: go through 2.9 first, update sbt and Java, swap Akka for Pekko, fix removed APIs and verify before deploying.

Upgrade Struts 2.5 to 6 and then 7: raise the Java baseline, clean up deprecated APIs and OGNL limits, and move to the Jakarta namespace.

Migrate Micronaut 3 to 4: move to Java 17, rename javax to jakarta, update the parent and plugins, fix removed APIs, test and check native builds.

Move a Struts application to Spring MVC one URL at a time: add Spring beside Struts, route by path, port actions, share services and retire Struts.