Comment on page
Upgrade Gradle dependency versions
_Upgrade the version of a dependency in a build.gradle file. Supports updating dependency declarations of various forms:
group: 'group', name: 'artifact', version: 'version'Can update version numbers which are defined earlier in the same file in variable declarations._
- groupId: org.openrewrite
- artifactId: rewrite-gradle
- version: 8.9.5
Attempts to resolve maven metadata that failed.
This recipe has required configuration parameters. Recipes with required configuration parameters cannot be activated directly. To activate this recipe you must create a new recipe which fills in the required parameters. In your
rewrite.ymlcreate a new recipe with a unique name. For example:
com.yourorg.UpgradeDependencyVersionExample. Here's how you can define and customize such a recipe within your rewrite.yml:
displayName: Upgrade Gradle dependency versions example
com.yourorg.UpgradeDependencyVersionExamplehas been defined activate it in your build file:
- 1.Add the following to your
gradle rewriteRunto run the recipe.
The community edition of the Moderne platform enables you to easily run recipes across thousands of open-source repositories.