Quarkus 1.13 migration from Quarkus 1.11
Recipe ID
org.openrewrite.quarkus.Quarkus1to1_13MigrationArtifactorg.openrewrite.recipe:rewrite-quarkusMigrates Quarkus 1.11 to 1.13.
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.Quarkus1to1_13Migration")
}
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.Quarkus1to1_13MigrationIf 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.
- Use
@ConfigMappingorg.openrewrite.quarkus.ConfigPropertiesToConfigMapping - Use Mutiny
multi.toHotStream()org.openrewrite.quarkus.MultiTransformHotStreamToMultiHotStream - Use
nativeprofile inquarkus-maven-pluginorg.openrewrite.quarkus.MigrateQuarkusMavenPluginNativeImageGoal - Configure
quarkus-maven-pluginwith reasonable defaultsorg.openrewrite.quarkus.ConfigureQuarkusMavenPluginWithReasonableDefaults - Change property key
org.openrewrite.properties.ChangePropertyKey - Change method name
io.smallrye.mutiny.Multi collectItems()tocollectorg.openrewrite.java.ChangeMethodName - Change method name
io.smallrye.mutiny.Multi groupItems()togrouporg.openrewrite.java.ChangeMethodName - Change method name
io.smallrye.mutiny.Multi transform()toselectorg.openrewrite.java.ChangeMethodName - Change method name
io.smallrye.mutiny.groups.MultiTransform byTakingFirstItems(..)tofirstorg.openrewrite.java.ChangeMethodName - Change method name
io.smallrye.mutiny.groups.MultiTransform byFilteringItemsWith(..)towhereorg.openrewrite.java.ChangeMethodName - Change method name
io.smallrye.mutiny.Multi subscribeOn(java.util.concurrent.Executor)torunSubscriptionOnorg.openrewrite.java.ChangeMethodName - Change method name
io.smallrye.mutiny.Uni subscribeOn(java.util.concurrent.Executor)torunSubscriptionOnorg.openrewrite.java.ChangeMethodName - Change method name
io.smallrye.mutiny.groups.UniOnFailure apply(java.util.function.Function)totransformorg.openrewrite.java.ChangeMethodName - Change method name
io.smallrye.mutiny.groups.UniOnItem apply(java.util.function.Function)totransformorg.openrewrite.java.ChangeMethodName - Change method name
io.smallrye.mutiny.groups.UniOnItemOrFailure apply(java.util.function.BiFunction)totransformorg.openrewrite.java.ChangeMethodName - Change method name
io.smallrye.mutiny.groups.UniOnNotNull apply(java.util.function.Function)totransformorg.openrewrite.java.ChangeMethodName - Change method name
io.smallrye.mutiny.groups.MultiOnFailure apply(java.util.function.Function)totransformorg.openrewrite.java.ChangeMethodName - Change method name
io.smallrye.mutiny.groups.MultiOnItem apply(java.util.function.Function)totransformorg.openrewrite.java.ChangeMethodName
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