Open Rewrite – Dive in Automated Refactoring
summary
Automated refactorings with Open Rewrite apply repeatable, behavior-preserving changes using a catalog of YAML declarative recipes, reaster templates and full Java (imperative) recipes; it runs via Maven/Gradle plugins or the Modern cloud, produces patches and opens PRs, and resolves classpath from the pom. Real examples: JUnit4→Jupiter conversions, Spring Boot upgrades (compose to 3.2), annotation removals and argument flips; small edits that cost ~10–50 minutes each get batched so migrations scale while still requiring human review.
AI-written summary · about
chapters (9)
- 0:00The need for modernization
- 2:27Challenges in migration
- 5:49Introduction to OpenRewrite
- 14:12Tooling and ecosystem
- 17:23Live demonstration
- 22:09Creating custom recipes
- 28:05Internal mechanics
- 33:22Community and next steps
- 36:01Q&A session
related talks
50mOpenRewrite: Refactor as Code
43mAutomate Code Changes - Bringing OpenRewrite to the IDE
17mMajor migrations made easy
01h 13mAutomating Security Fixes with OpenRewrite
54mHybrid Modernization: Combining OpenRewrite's Precision with LLM Intelligence for Spring
45mMajor migrations made easy
22mAutomate your inner scout
13mModernize your money-maker
