arconia update gradle
The arconia update gradle command upgrades your project’s Gradle wrapper to a newer version. It uses the UpdateGradleWrapper recipe from the OpenRewrite OSS library.
The recipe updates gradle/wrapper/gradle-wrapper.properties with the new Gradle version and refreshes the associated wrapper JAR and scripts.
Usage
Preview what changes will be made without applying them:
arconia update gradle --dry-run
Apply the update:
arconia update gradle
Pass extra parameters to the underlying build tool using --:
arconia update gradle -- --stacktrace
arconia update gradle -- -DmyProperty=value
| Commit your project to version control before running this command so you can review the changes and revert if needed. |
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. |
|
|
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.