Overview
To help upgrade Atoti FRTB, a set of OpenRewrite recipes is provided that can be used to automatically perform some of the migration steps. See the Migration Notes page for the release for details on the recipes. For example, what recipes are available and what they do. This page describes how to run the recipes.Setting up
Start by updating thepom.xml so that it uses the com.activeviam.apps:frtb pom file for the new version.
This will include the configuration of the OpenRewrite Maven plugin in the openrewrite Maven profile.
Additionally, the rewrite.yml file from the new release distribution is required in the root of the project.
The rewrite.yml file contains the recipes for the migration. These recipes can be run individually,
or there is a single default recipe that will run all of them.
Using Maven to run the migration
The recipes can be run from Maven using therewrite-maven-plugin:run goal and the openrewrite profile:
pom.xml file using the property rewrite.activeRecipes.
By changing the value of this property in the Maven command, individual recipes can be run.
For example, to run the recipe com.activeviam.frtb.AddProperties_6_0, use:
rewrite-maven-plugin, including the dryRun goal to just display the changes, see the OpenRewrite Maven plugin documentation.
Running the migration from your IDE
Modern IDEs can be used to execute the Maven commands in the previous section. The IntelliJ Ultimate IDE can run the OpenRewrite recipes directly. If you open therewrite.yml file in IntelliJ Ultimate, beside each recipe you will see a green triangle (like a “play” button).
This button can be used to run the recipe directly.
See IntelliJ OpenRewrite documentation for more information.