Quarkus 2.x migration from Quarkus 1.x
Recipe ID
org.openrewrite.quarkus.quarkus2.Quarkus1to2MigrationArtifactorg.openrewrite.recipe:rewrite-quarkusMigrates Quarkus 1.x to 2.x.
Composite recipeApache 2.0
Add to your build
Get a download tokenSign in with GitHub or Google, and your token replaces YOUR_DOWNLOAD_TOKEN below. Free for open source recipes like this one.
~/.gradle/gradle.properties
codeGenomeUsername=you@example.com
codeGenomeToken=YOUR_DOWNLOAD_TOKEN
build.gradle.kts
plugins {
id("org.openrewrite.rewrite") version("latest.release")
}
rewrite {
activeRecipe("org.openrewrite.quarkus.quarkus2.Quarkus1to2Migration")
}
repositories {
mavenCentral()
maven {
url = uri("https://artifacts.codegenomeproject.org/maven")
credentials {
username = providers.gradleProperty("codeGenomeUsername").get()
password = providers.gradleProperty("codeGenomeToken").get()
}
}
}
dependencies {
rewrite("org.openrewrite.recipe:rewrite-quarkus:2.36.1")
}
Then run
./gradlew rewriteRunUsage
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:RELEASEDefinition
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
io.quarkus.qute.api.CheckedTemplatetoio.quarkus.qute.CheckedTemplateorg.openrewrite.java.ChangeType - Change type
ResourcePathtoLocationorg.openrewrite.java.ChangeType - Change type
io.quarkus.mongodb.runtime.MongoClientNametoio.quarkus.mongodb.MongoClientNameorg.openrewrite.java.ChangeType - Change Maven parent
null:null:2.xorg.openrewrite.maven.ChangeParentPom - Upgrade Gradle or Maven dependency versions
org.openrewrite.java.dependencies.UpgradeDependencyVersion - Change Maven parent
null:null:2.xorg.openrewrite.maven.ChangeParentPom - Upgrade Gradle or Maven dependency versions
org.openrewrite.java.dependencies.UpgradeDependencyVersion - Upgrade Maven plugin version
io.quarkus:quarkus-maven-plugin:2.xorg.openrewrite.maven.UpgradePluginVersion - Rename package name
io.vertx.core.http.HttpMethodtoio.quarkus.vertx.web.Route.HttpMethodorg.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