← All recipes
Open source

Change Gradle annotation processor dependency and remove version

Recipe IDio.quarkus.updates.core.quarkus339.ChangeGradleAnnotationProcessorDependencyArtifactorg.openrewrite.recipe:rewrite-third-party

Change 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:RELEASE

Options

NameTypeDescription
oldGroupIdrequiredStringThe old groupId to replace.
e.g. org.hibernate.orm
oldArtifactIdrequiredStringThe old artifactId to replace.
e.g. hibernate-processor
newGroupIdrequiredStringThe new groupId to use.
e.g. io.quarkus
newArtifactIdrequiredStringThe 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