arconia update spring-ai
The arconia update spring-ai command upgrades your project to a newer version of Spring AI. It uses upgrade recipes from the Arconia Migrations project, which automatically apply the necessary changes: dependency version bumps, API renames, and configuration property updates required by the new version.
Usage
Preview what changes will be made without applying them:
arconia update spring-ai --to-version=1.1 --dry-run
Apply the update:
arconia update spring-ai --to-version=1.1
Pass extra parameters to the underlying build tool using --:
arconia update spring-ai --to-version=1.1 -- --stacktrace
arconia update spring-ai --to-version=1.1 -- -DmyProperty=value
| Commit your project to version control before running this command so you can review the changes and revert if needed. |
Consider using --dry-run first to inspect what the migration recipe will change before applying it.
|
Options
The following options are available:
| Option | Default | Description |
|---|---|---|
|
|
Preview the changes that would be made without modifying any files. Recommended before applying the update. |
|
|
Spring AI target version to upgrade to. |
|
|
Include verbose output. |
|
Display help information for the command. |
Build Tool Integration
The command runs the appropriate OpenRewrite task based on your build tool, following the same approach used by the arconia rewrite command.
Use -- to pass parameters directly to the underlying build tool. The -- separator is required to distinguish Arconia CLI options from build tool parameters.