rewrite-spring icon indicating copy to clipboard operation
rewrite-spring copied to clipboard

Recipes to upgrade to Spring Framework 6.2

Open timtebeek opened this issue 1 year ago • 2 comments

We want to support migrations to Spring Framework 6.2, as part of a migration to Spring Boot 3.4.

Here's a quick link to the release notes: https://github.com/spring-projects/spring-framework/wiki/Spring-Framework-6.2-Release-Notes

And here's an incomplete list of necessary steps for this migration:

  • [ ] Deprecated APIs removed in https://github.com/spring-projects/spring-framework/issues/30608
  • [ ] Additional APIs removed in https://github.com/spring-projects/spring-framework/issues/33123
  • [ ] WebContentGenerator removed in https://github.com/spring-projects/spring-framework/issues/31492
  • [ ] Migrating from HtmlUnit 2.x.x to HtmlUnit 3.x.x as per https://htmlunit.sourceforge.io/migration.html
    • [ ] ~https://github.com/openrewrite/rewrite-testing-frameworks/pull/643~
    • [ ] Include the HtmlUnit migrations with the Spring Framework 6.2 upgrade

We welcome anyone to pick off individual items here in pull requests, even if it's just a draft PR with unit tests added.

timtebeek avatar Nov 14 '24 18:11 timtebeek

Hi any tentative time to get Spring Boot 3.4 recipe ready? As I have tried activeRecipe("org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_4") but it's not working and showing org.openrewrite.RecipeException: Recipe(s) not found: org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_4

Also are we going to include changes of @mockBean & @sypbean as per https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.4-Release-Notes#deprecation-of-mockbean-and-spybean

A1016375 avatar Nov 28 '24 07:11 A1016375

hi! Those recipes first have to be written and contributed to the project; I've logged a small break down of tasks for Spring Boot:

  • https://github.com/openrewrite/rewrite-spring/issues/642

Welcome to help out on either the steps here or on that other issue.

timtebeek avatar Nov 28 '24 10:11 timtebeek

This PR from @wapkch helpfully includes some of the steps above already:

  • https://github.com/openrewrite/rewrite-spring/pull/693
  • https://github.com/openrewrite/rewrite-spring/pull/689

timtebeek avatar Apr 04 '25 20:04 timtebeek