Major migrations made easy with OpenRewrite
OpenRewrite enables large-scale distributed source code refactoring for framework migrations, vulnerability patches, and API migrations with an early focus on the Java language.
— Introduction to OpenRewrite
To demonstrate OpenRewrite, this blogpost will walk through upgrading a Spring Boot 1.5 application to 2.5+. Along the way we will pick up JUnit 5, and migrate from Java 8 to 17, with minimal manual intervention.
We’ll start with the Spring PetClinic Sample Application, back as it was almost five years ago in 2017!