🔸 TL;DR
▪️ I migrated a Spring Boot 3 app to Spring Boot 4 using OpenRewrite.
▪️ Add the Rewrite Maven plugin + the right recipe pack, run rewrite:discover / rewrite:run, review the diff, rebuild, retest ✅
🔸 WHAT’S IN THE VIDEO
▪️ Run the app first (baseline ✅)
▪️ Add rewrite-maven-plugin to the pom.xml
▪️ Make sure the Boot 4 recipe is actually available (recipe pack on plugin classpath)
▪️ Execute the migration recipe
▪️ Review the generated changes (pom + code + config)
▪️ Re-run tests + endpoint validation
🔸 WHY OPENREWRITE IS A GAME CHANGER
▪️ Automates mechanical refactors (less human error) 🤖
▪️ Produces reviewable diffs (Git-friendly) 🧾
▪️ Repeatable across projects and teams 🔁
▪️ Great for “upgrade waves” (Boot, Spring, Java baselines) 🌊
🔸 TAKEAWAYS
▪️ If you see: “Could not find recipe … among available recipes” → your recipe jar isn’t loaded (use plugin or -Drewrite.recipeArtifactCoordinates=...)
▪️ Run rewrite:discover before rewrite:run to confirm the recipe is visible
▪️ Always validate with ./mvnw test + a quick runtime smoke test
🎥 Video: https://youtu.be/Q6Zf_Eg_zxg
📦 Repo: https://github.com/vinny59200/vv-spring-h2-custom-finder-relationship.git
#SpringBoot #OpenRewrite #Java #Spring #Maven #Refactoring #DeveloperTools #Backend #SoftwareEngineering
🍃📗 Grab your Spring cert Book: https://bit.ly/springtify
📺 https://youtu.be/Q6Zf_Eg_zxg