arconia rewrite discover
The arconia rewrite discover command lists available OpenRewrite recipes that can be used with the arconia rewrite run command to migrate or refactor your codebase.
Usage
Discover available recipes:
arconia rewrite discover
Pass extra parameters to the underlying build tool using --:
arconia rewrite discover -- --stacktrace
Options
The following options are available:
| Option | Default | Description |
|---|---|---|
|
|
Include verbose output. |
|
Display help information for the command. |
Build Tool Integration
The command automatically detects whether your project uses Maven or Gradle and runs the appropriate OpenRewrite discovery task relying on the OpenRewrite Maven and Gradle plugins without modifying the build itself.
Use -- to pass parameters directly to the underlying build tool. The -- separator is required to distinguish Arconia CLI options from build tool parameters.
Default Recipe Libraries
The Arconia CLI is configured with the following recipe libraries out of the box. All recipes from these libraries are available to arconia rewrite discover and arconia rewrite run without needing to specify --recipe-library:
| Library | Description |
|---|---|
|
Recipes for migrating between Arconia Framework versions. |
|
Recipes for migrating between Spring Boot and Spring AI versions. |
|
Recipes for Docling-related migrations. |
|
Recipes for test framework migrations and improvements, including JUnit and Testcontainers. |
|
Core OpenRewrite recipes for Java code (e.g., removing unused imports, updating Java versions). |
|
Recipes for managing and updating Java dependencies. |
All Arconia Migrations recipes are open-source and released under the Apache 2.0 license.
Additional Recipe Sources
Beyond the bundled libraries, you can find more recipes in these catalogs:
-
OpenRewrite Recipe Catalog — The comprehensive catalog of all available OpenRewrite recipes. Use
--recipe-librarywitharconia rewrite runto include recipes from additional libraries. -
Arconia Migrations — The full set of Arconia migration recipes.
| The OpenRewrite Recipe Catalog includes recipes with different licenses. Some are open-source (Apache 2.0); others use the Moderne Source Available License or Moderne Proprietary License. Review the license of any recipe before running it. See OpenRewrite module versions for details. |