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

--verbose or -v

false

Include verbose output.

--help or -h

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

io.arconia.migrations:rewrite-arconia

Recipes for migrating between Arconia Framework versions.

io.arconia.migrations:rewrite-spring

Recipes for migrating between Spring Boot and Spring AI versions.

io.arconia.migrations:rewrite-docling

Recipes for Docling-related migrations.

io.arconia.migrations:rewrite-test

Recipes for test framework migrations and improvements, including JUnit and Testcontainers.

org.openrewrite:rewrite-java

Core OpenRewrite recipes for Java code (e.g., removing unused imports, updating Java versions).

org.openrewrite.recipe:rewrite-java-dependencies

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:

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.