Comment on page
Removes a repository from Gradle build scripts. Named repositories include "jcenter", "mavenCentral", "mavenLocal", and "google".
- groupId: org.openrewrite
- artifactId: rewrite-gradle
- version: 8.9.5
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.RemoveRepositoryExample. Here's how you can define and customize such a recipe within your rewrite.yml:
displayName: Remove repository example
com.yourorg.RemoveRepositoryExamplehas 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.