Quarkus 2.x migration from Quarkus 1.x
Recipe ID
org.openrewrite.quarkus.quarkus2.Quarkus1to2MigrationArtifact
org.openrewrite.recipe:rewrite-quarkusMigrates Quarkus 1.x to 2.x.
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe org.openrewrite.quarkus.quarkus2.Quarkus1to2MigrationIf the recipe isn’t available locally, install it with:
mod config recipes jar install org.openrewrite.recipe:rewrite-quarkus:2.34.0Definition
This recipe runs the following recipes in order.
- Quarkus 1.13 migration from Quarkus 1.11
org.openrewrite.quarkus.Quarkus1to1_13Migration - Use
@GrpcClientorg.openrewrite.quarkus.quarkus2.GrpcServiceAnnotationToGrpcClient - Remove
avro-maven-pluginorg.openrewrite.quarkus.quarkus2.RemoveAvroMavenPlugin - Use
@Identifier("default-kafka-broker")org.openrewrite.quarkus.quarkus2.UseIdentifierOnDefaultKafkaBroker - Use
PanacheEntityBasestatic methodsorg.openrewrite.quarkus.quarkus2.UsePanacheEntityBaseStaticMethods - Use
Uni<T extends PanacheEntityBase>org.openrewrite.quarkus.quarkus2.UsePanacheEntityBaseUniT - Use
Uni<T extends ReactivePanacheMongoEntityBase>org.openrewrite.quarkus.quarkus2.UseReactivePanacheMongoEntityBaseUniT - Change property key
org.openrewrite.properties.ChangePropertyKey - Change property key
org.openrewrite.properties.ChangePropertyKey - Change property key
org.openrewrite.properties.ChangePropertyKey - Change property value
org.openrewrite.properties.ChangePropertyValue - Change property key
org.openrewrite.properties.ChangePropertyKey - Change property value
org.openrewrite.properties.ChangePropertyValue - Change type
org.openrewrite.java.ChangeType - Change type
org.openrewrite.java.ChangeType - Change type
org.openrewrite.java.ChangeType - Change Maven parent
org.openrewrite.maven.ChangeParentPom - Upgrade Gradle or Maven dependency versions
org.openrewrite.java.dependencies.UpgradeDependencyVersion - Change Maven parent
org.openrewrite.maven.ChangeParentPom - Upgrade Gradle or Maven dependency versions
org.openrewrite.java.dependencies.UpgradeDependencyVersion - Upgrade Maven plugin version
org.openrewrite.maven.UpgradePluginVersion - Rename package name
org.openrewrite.java.ChangePackage
Data tables
Structured output this recipe can produce.
- Maven metadata failuresAttempts to resolve maven metadata that failed.
org.openrewrite.maven.table.MavenMetadataFailures - 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