📄️ Quickstart: Setting up your project and running recipes
This guide covers configuring OpenRewrite with Maven or Gradle and using it to run refactoring recipes.
📄️ How to customize recipes to meet your needs
OpenRewrite recipes are opinionated – meaning that they encourage certain conventions, patterns, or practices. The idea behind this is to provide sensible defaults that work for most people most of the time without requiring any fiddling.
📄️ Running Rewrite on a Gradle project without modifying the build
In this tutorial, we will apply a Rewrite recipe to a repository built with Gradle without modifying the build itself. We will use a Gradle init script to accomplish this.
📄️ Running Rewrite on a Maven project without modifying the build
In this tutorial, we will apply a Rewrite recipe to a source code repository built with Maven without modifying the build itself. The instructions for this differ slightly depending on whether or not the recipe has configuration parameters. Please note that you will need to have Maven installed in order to run the shell commands.
📄️ Running OpenRewrite on a multi-module Maven project
If you have a Maven project with multiple modules, you may run into errors finding and running the OpenRewrite Maven plugin.
📄️ Running text based recipes
Text recipes are recipes that forego the Lossless Semantic Tree (LST) in favor of interacting with text directly. In almost every situation, this is not what you want to do. This is because running a text recipe against any file that could be parsed into an LST will convert said file into a plain text file and you will no longer be able to run non-text recipes against the file.
📄️ Getting started with data tables
Traditionally, recipes either tried to fix an issue by updating the code directly or they helped you find pieces of code based on a query. However, what if you wanted to extract some specific attributes or inferences from the code? For example, what if you wanted to know details about the vulnerabilities that exist in one of your repositories?
🗃️ Popular recipe guides
16 items