Change Gradle annotation processor dependency and remove version
Recipe ID
io.quarkus.updates.core.quarkus339.ChangeGradleAnnotationProcessorDependencyArtifactorg.openrewrite.recipe:rewrite-third-partyChange the groupId and artifactId of a Gradle annotation processor dependency, remove any explicit version, and add an enforcedPlatform for the Quarkus BOM if the old dependency had a version and no platform was present.
Single recipeApache 2.0
Usage
You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe io.quarkus.updates.core.quarkus339.ChangeGradleAnnotationProcessorDependency --recipe-option "oldGroupId=org.hibernate.orm" --recipe-option "oldArtifactId=hibernate-processor" --recipe-option "newGroupId=io.quarkus" --recipe-option "newArtifactId=quarkus-data-processor"If the recipe isn’t available locally, install it with:
mod config recipes jar install org.openrewrite.recipe:rewrite-third-party:RELEASEOptions
| Name | Type | Description |
|---|---|---|
oldGroupIdrequired | String | The old groupId to replace. e.g. org.hibernate.orm |
oldArtifactIdrequired | String | The old artifactId to replace. e.g. hibernate-processor |
newGroupIdrequired | String | The new groupId to use. e.g. io.quarkus |
newArtifactIdrequired | String | The new artifactId to use. e.g. quarkus-data-processor |
Data tables
Structured output this recipe can produce.
- Source files that had resultsSource files that were modified by the recipe run.
org.openrewrite.table.SourcesFileResults - Source files that had search resultsSearch results that were found during the recipe run.
org.openrewrite.table.SearchResults - Source files that errored on a recipeThe details of all errors produced by a recipe run.
org.openrewrite.table.SourcesFileErrors - Recipe performanceStatistics used in analyzing the performance of recipes.
org.openrewrite.table.RecipeRunStats