Skip to content

Commit 63be331

Browse files
committed
OpenRewrite migration
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
1 parent a8b4728 commit 63be331

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

docs/content/en/docs/migration/v5-3-migration.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,30 @@ title: Migrating from v5.2 to v5.3
33
description: Migrating from v5.2 to v5.3
44
---
55

6+
## Automated Migration with OpenRewrite
7+
8+
You can automatically apply all the migration changes described below using [OpenRewrite](https://docs.openrewrite.org/).
9+
Add the following to your `pom.xml` and run `mvn rewrite:run`:
10+
11+
```xml
12+
<plugin>
13+
<groupId>org.openrewrite.maven</groupId>
14+
<artifactId>rewrite-maven-plugin</artifactId>
15+
<version>6.33.0</version>
16+
<configuration>
17+
<activeRecipes>
18+
<recipe>io.javaoperatorsdk.operator.migration.V5_3Migration</recipe>
19+
</activeRecipes>
20+
</configuration>
21+
<dependencies>
22+
<dependency>
23+
<groupId>io.javaoperatorsdk</groupId>
24+
<artifactId>migration</artifactId>
25+
<version>5.3.0</version>
26+
</dependency>
27+
</dependencies>
28+
</plugin>
29+
```
630

731
## Rename of JUnit module
832

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
<module>caffeine-bounded-cache-support</module>
5555
<module>bootstrapper-maven-plugin</module>
5656
<module>test-index-processor</module>
57+
<module>migration</module>
5758
</modules>
5859

5960
<scm>

0 commit comments

Comments
 (0)