Design Partners
Quarkus 2.x migration from Quarkus 1.x
** org.openrewrite.java.quarkus.quarkus2.Quarkus1to2Migration** Migrates Quarkus 1.x to 2.x.

Source

  • groupId: org.openrewrite.recipe
  • artifactId: rewrite-quarkus
  • version: 1.5.0

Usage

This recipe has no required configuration options and can be activated directly after taking a dependency on org.openrewrite.recipe:rewrite-quarkus:1.5.0 in your build file:
Gradle
Maven
build.gradle
1
plugins {
2
id("org.openrewrite.rewrite") version("5.20.0")
3
}
4
5
rewrite {
6
activeRecipe("org.openrewrite.java.quarkus.quarkus2.Quarkus1to2Migration")
7
}
8
9
repositories {
10
mavenCentral()
11
}
12
13
dependencies {
14
rewrite("org.openrewrite.recipe:rewrite-quarkus:1.5.0")
15
}
Copied!
pom.xml
1
<project>
2
<build>
3
<plugins>
4
<plugin>
5
<groupId>org.openrewrite.maven</groupId>
6
<artifactId>rewrite-maven-plugin</artifactId>
7
<version>4.23.0</version>
8
<configuration>
9
<activeRecipes>
10
<recipe>org.openrewrite.java.quarkus.quarkus2.Quarkus1to2Migration</recipe>
11
</activeRecipes>
12
</configuration>
13
<dependencies>
14
<dependency>
15
<groupId>org.openrewrite.recipe</groupId>
16
<artifactId>rewrite-quarkus</artifactId>
17
<version>1.5.0</version>
18
</dependency>
19
</dependencies>
20
</plugin>
21
</plugins>
22
</build>
23
</project>
Copied!
Recipes can also be activated directly from the command line by adding the argument -Drewrite.activeRecipes=org.openrewrite.java.quarkus.quarkus2.Quarkus1to2Migration

Definition

Recipe List
Yaml Recipe List
1
---
2
type: specs.openrewrite.org/v1beta/recipe
3
name: org.openrewrite.java.quarkus.quarkus2.Quarkus1to2Migration
4
displayName: Quarkus 2.x migration from Quarkus 1.x
5
description: Migrates Quarkus 1.x to 2.x.
6
recipeList:
7
- org.openrewrite.properties.ChangePropertyKey:
8
oldPropertyKey: smallrye.jwt.sign.key-location
9
newPropertyKey: smallrye.jwt.sign.key.location
10
- org.openrewrite.properties.ChangePropertyKey:
11
oldPropertyKey: smallrye.jwt.encrypt.key-location
12
newPropertyKey: smallrye.jwt.encrypt.key.location
13
- org.openrewrite.properties.ChangePropertyKey:
14
oldPropertyKey: quarkus.neo4j.pool.metrics-enabled
15
newPropertyKey: quarkus.neo4j.pool.metrics.enabled
16
- org.openrewrite.properties.ChangePropertyValue:
17
propertyKey: quarkus.quartz.force-start
18
newValue: forced
19
- org.openrewrite.properties.ChangePropertyKey:
20
oldPropertyKey: quarkus.quartz.force-start
21
newPropertyKey: quarkus.quartz.start-mode
22
- org.openrewrite.properties.ChangePropertyValue:
23
propertyKey: quarkus.quartz.store-type
24
newValue: jdbc-cmt
25
oldValue: db
26
- org.openrewrite.java.ChangeType:
27
oldFullyQualifiedTypeName: io.quarkus.qute.api.CheckedTemplate
28
newFullyQualifiedTypeName: io.quarkus.qute.CheckedTemplate
29
- org.openrewrite.java.ChangeType:
30
oldFullyQualifiedTypeName: io.quarkus.qute.api.ResourcePath
31
newFullyQualifiedTypeName: io.quarkus.qute.Location
32
- org.openrewrite.java.ChangeType:
33
oldFullyQualifiedTypeName: io.quarkus.mongodb.runtime.MongoClientName
34
newFullyQualifiedTypeName: io.quarkus.mongodb.MongoClientName
35
- org.openrewrite.maven.UpgradeDependencyVersion:
36
groupId: io.quarkus
37
artifactId: quarkus-universe-bom
38
newVersion: 2.x
39
- org.openrewrite.maven.UpgradeDependencyVersion:
40
groupId: io.quarkus
41
artifactId: quarkus-bom
42
newVersion: 2.x
43
- org.openrewrite.maven.UpgradePluginVersion:
44
groupId: io.quarkus
45
artifactId: quarkus-maven-plugin
46
newVersion: 2.x
47
- org.openrewrite.java.ChangePackage:
48
oldPackageName: io.vertx.core.http.HttpMethod
49
newPackageName: io.quarkus.vertx.web.Route.HttpMethod
50
recursive: false
51
- org.openrewrite.java.quarkus.Quarkus1to1_13Migration
52
- org.openrewrite.java.quarkus.quarkus2.GrpcServiceAnnotationToGrpcClient
53
- org.openrewrite.java.quarkus.quarkus2.RemoveAvroMavenPlugin
54
- org.openrewrite.java.quarkus.quarkus2.UseIdentifierOnDefaultKafkaBroker
55
- org.openrewrite.java.quarkus.quarkus2.UsePanacheEntityBaseStaticMethods
56
- org.openrewrite.java.quarkus.quarkus2.UsePanacheEntityBaseUniT
57
- org.openrewrite.java.quarkus.quarkus2.UseReactivePanacheMongoEntityBaseUniT
Copied!
Export as PDF
Copy link