This repository serves as a template for building your own recipe JARs and publishing them to a repository where they can be applied on app.moderne.io against all the public OSS code that is included there.
Familiarize yourself with the OpenRewrite documentation, in particular the concepts & explanations op topics like the lossless semantic trees, recipes and visitors.
You might be interested to watch some of the videos available on OpenRewrite and Moderne.
Once you want to dive into the code there is a comprehensive getting started guide available in the OpenRewrite docs that provides more details than the below README.
Before you publish your recipe module to an artifact repository, you may want to try it out locally.
./mvnw install
This will publish to your local maven repository, typically under ~/.m2/repository
.
Replace the groupId, artifactId, recipe name, and version in the below snippets with the ones that correspond to your recipe.