org.openrewrite.java.spring.boot2.SpringBoot2JUnit4to5Migration - Junit 4 to 5 migration including spring-test specific migrations. Superset of the base JUnit4to5Migration.
org.openrewrite.java.spring.boot2.SpringBoot1To2Migration - Spring boot 1 to 2 migration.We have made some improvements here but there are still gaps. Includes JUnit and Mockito migrations.
With JavaTemplate you can patch snippets of Java code directly into the AST. No need to hand-construct Java ASTs to use in refactoring visitors anymore.
Java Formatting and Styling
Write your refactoring visitors to achieve the desired semantics and let AutoFormat figure out the whitespace.
It is now possible to create search recipes which don't alter the AST but leave behind Markers that can either be printed out by a search result printer or responded to by other search or refactoring recipes.
Build Tool Plugin Enhancements
See more information about what recipes are available and how to configure them, without having to dig through docs or source code: mvn rewrite:discoverand gradle rewriteDiscover now show recipe descriptions that include an overview of their parameters.
CycloneDx BOM Generation
To generate a CycloneDx bom with the maven plugin run mvn rewrite:cyclonedx. The gradle plugin does not yet generate cyclonedx boms.
Simplified YAML File Format
Here's an example of configuring the new `ChangePackage` recipe in your rewrite.yml move everything in one package into another package:
With that rewrite.yml, adding com.yourorg.VetToVeterinary to the list of activeRecipes in your build plugin configuration will affect the package relocation, including moving the files on disk, when you run mvn rewrite:run or gradlew rewriteRun.