arconia update spring-boot
The arconia update spring-boot command upgrades your project to a newer version of Spring Boot. It uses upgrade recipes from the Arconia Migrations project, which automatically apply the changes required by the new version: dependency version bumps, deprecated API replacements, configuration property renames, and more.
Usage
Preview what changes will be made without applying them:
arconia update spring-boot --to-version=4.0 --dry-run
Apply the update:
arconia update spring-boot --to-version=4.0
Pass extra parameters to the underlying build tool using --:
arconia update spring-boot --to-version=4.0 -- --stacktrace
arconia update spring-boot --to-version=4.0 -- -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 Boot 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.