Skip to content

Commit 9ec5bcd

Browse files
authored
Merge pull request #74 from junior/rewrite-weblogic-readme-update
rewrite-weblogic readme updates
2 parents 7c035cb + cf46297 commit 9ec5bcd

13 files changed

+102
-107
lines changed

rewrite-weblogic/README.md

+19-19
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,16 @@ Clone your project to your local machine.
6161

6262
```shell
6363
mvn -U org.openrewrite.maven:rewrite-maven-plugin:run \
64-
-Drewrite.recipeArtifactCoordinates=com.oracle.weblogic.rewrite:rewrite-weblogic:LATEST,org.openrewrite.recipe:rewrite-migrate-java:RELEASE \
65-
-Drewrite.activeRecipes=com.oracle.weblogic.rewrite.UpgradeTo1412,org.openrewrite.java.migrate.UpgradeToJava21
64+
-Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-migrate-java:RELEASE,com.oracle.weblogic.rewrite:rewrite-weblogic:LATEST \
65+
-Drewrite.activeRecipes=org.openrewrite.java.migrate.UpgradeToJava21,com.oracle.weblogic.rewrite.UpgradeTo1412
6666
```
6767

6868
#### Upgrade applications to WebLogic 14.1.2 and Java 17
6969

7070
```shell
7171
mvn -U org.openrewrite.maven:rewrite-maven-plugin:run \
72-
-Drewrite.recipeArtifactCoordinates=com.oracle.weblogic.rewrite:rewrite-weblogic:LATEST,org.openrewrite.recipe:rewrite-migrate-java:RELEASE \
73-
-Drewrite.activeRecipes=com.oracle.weblogic.rewrite.UpgradeTo1412,org.openrewrite.java.migrate.UpgradeToJava17
72+
-Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-migrate-java:RELEASE,com.oracle.weblogic.rewrite:rewrite-weblogic:LATEST \
73+
-Drewrite.activeRecipes=org.openrewrite.java.migrate.UpgradeToJava17,com.oracle.weblogic.rewrite.UpgradeTo1412
7474
```
7575

7676
#### **WebLogic Server 15.1.1 BETA recipes**
@@ -82,17 +82,17 @@ mvn -U org.openrewrite.maven:rewrite-maven-plugin:run \
8282

8383
```shell
8484
mvn -U org.openrewrite.maven:rewrite-maven-plugin:run \
85-
-Drewrite.recipeArtifactCoordinates=com.oracle.weblogic.rewrite:rewrite-weblogic:LATEST,org.openrewrite.recipe:rewrite-migrate-java:RELEASE \
86-
-Drewrite.activeRecipes=com.oracle.weblogic.rewrite.UpgradeTo1511,org.openrewrite.java.migrate.UpgradeToJava21,com.oracle.weblogic.rewrite.JakartaEE9_1 \
85+
-Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-migrate-java:RELEASE,com.oracle.weblogic.rewrite:rewrite-weblogic:LATEST \
86+
-Drewrite.activeRecipes=,org.openrewrite.java.migrate.UpgradeToJava21,com.oracle.weblogic.rewrite.JakartaEE9_1,com.oracle.weblogic.rewrite.UpgradeTo1511 \
8787
-Drewrite.exportDatatables=true
8888
```
8989

9090
##### Upgrade applications to WebLogic Server 15.1.1 BETA, Jakarta EE 9.1, and Java 17
9191

9292
```shell
9393
mvn -U org.openrewrite.maven:rewrite-maven-plugin:run \
94-
-Drewrite.recipeArtifactCoordinates=com.oracle.weblogic.rewrite:rewrite-weblogic:LATEST,org.openrewrite.recipe:rewrite-migrate-java:RELEASE \
95-
-Drewrite.activeRecipes=com.oracle.weblogic.rewrite.UpgradeTo1511,org.openrewrite.java.migrate.UpgradeToJava17,com.oracle.weblogic.rewrite.JakartaEE9_1 \
94+
-Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-migrate-java:RELEASE,com.oracle.weblogic.rewrite:rewrite-weblogic:LATEST \
95+
-Drewrite.activeRecipes=org.openrewrite.java.migrate.UpgradeToJava17,com.oracle.weblogic.rewrite.JakartaEE9_1,com.oracle.weblogic.rewrite.UpgradeTo1511 \
9696
-Drewrite.exportDatatables=true
9797
```
9898

@@ -102,8 +102,8 @@ If your application is running with Spring Framework 5.x on WebLogic 12.x or 14.
102102

103103
```shell
104104
mvn -U org.openrewrite.maven:rewrite-maven-plugin:run \
105-
-Drewrite.recipeArtifactCoordinates=com.oracle.weblogic.rewrite:rewrite-weblogic:LATEST,org.openrewrite.recipe:rewrite-migrate-java:RELEASE,org.openrewrite.recipe:rewrite-spring:RELEASE \
106-
-Drewrite.activeRecipes=com.oracle.weblogic.rewrite.UpgradeTo1511,org.openrewrite.java.migrate.UpgradeToJava21,com.oracle.weblogic.rewrite.JakartaEE9_1,com.oracle.weblogic.rewrite.spring.framework.UpgradeToSpringFramework_6_2 \
105+
-Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-migrate-java:RELEASE,com.oracle.weblogic.rewrite:rewrite-weblogic:LATEST,org.openrewrite.recipe:rewrite-spring:RELEASE \
106+
-Drewrite.activeRecipes=org.openrewrite.java.migrate.UpgradeToJava21,com.oracle.weblogic.rewrite.JakartaEE9_1,com.oracle.weblogic.rewrite.UpgradeTo1511,com.oracle.weblogic.rewrite.spring.framework.UpgradeToSpringFramework_6_2 \
107107
-Drewrite.exportDatatables=true
108108
```
109109

@@ -114,8 +114,8 @@ Example that includes the Hibernate recipe running with the WebLogic 15.1.1 BETA
114114

115115
```shell
116116
mvn -U org.openrewrite.maven:rewrite-maven-plugin:run \
117-
-Drewrite.recipeArtifactCoordinates=com.oracle.weblogic.rewrite:rewrite-weblogic:LATEST,org.openrewrite.recipe:rewrite-migrate-java:RELEASE,org.openrewrite.recipe:rewrite-spring:RELEASE,org.openrewrite.recipe:rewrite-hibernate:RELEASE \
118-
-Drewrite.activeRecipes=com.oracle.weblogic.rewrite.UpgradeTo1511,org.openrewrite.java.migrate.UpgradeToJava21,com.oracle.weblogic.rewrite.JakartaEE9_1,com.oracle.weblogic.rewrite.spring.framework.UpgradeToSpringFramework_6_2,com.oracle.weblogic.rewrite.hibernate.MigrateHibernate4JakartaEE9 \
117+
-Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-migrate-java:RELEASE,com.oracle.weblogic.rewrite:rewrite-weblogic:LATEST,org.openrewrite.recipe:rewrite-spring:RELEASE,org.openrewrite.recipe:rewrite-hibernate:RELEASE \
118+
-Drewrite.activeRecipes=org.openrewrite.java.migrate.UpgradeToJava21,com.oracle.weblogic.rewrite.JakartaEE9_1,com.oracle.weblogic.rewrite.UpgradeTo1511,com.oracle.weblogic.rewrite.spring.framework.UpgradeToSpringFramework_6_2,com.oracle.weblogic.rewrite.hibernate.MigrateHibernate4JakartaEE9 \
119119
-Drewrite.exportDatatables=true
120120
```
121121

@@ -128,25 +128,25 @@ mvn -U org.openrewrite.maven:rewrite-maven-plugin:run \
128128
<plugin>
129129
<groupId>org.openrewrite.maven</groupId>
130130
<artifactId>rewrite-maven-plugin</artifactId>
131-
<version>5.43.0</version>
131+
<version>6.3.1</version>
132132
<configuration>
133133
<exportDatatables>true</exportDatatables>
134134
<activeRecipes>
135-
<recipe>com.oracle.weblogic.rewrite.UpgradeTo1412</recipe>
136135
<recipe>org.openrewrite.java.migrate.UpgradeToJava21</recipe>
136+
<recipe>com.oracle.weblogic.rewrite.UpgradeTo1412</recipe>
137137
</activeRecipes>
138138
</configuration>
139139
<dependencies>
140+
<dependency>
141+
<groupId>org.openrewrite.recipe</groupId>
142+
<artifactId>rewrite-migrate-java</artifactId>
143+
<version>3.4.0</version>
144+
</dependency>
140145
<dependency>
141146
<groupId>com.oracle.weblogic.rewrite</groupId>
142147
<artifactId>rewrite-weblogic</artifactId>
143148
<version>[0.4.5,)</version>
144149
</dependency>
145-
<dependency>
146-
<groupId>org.openrewrite.recipe</groupId>
147-
<artifactId>rewrite-migrate-java</artifactId>
148-
<version>2.28.0</version>
149-
</dependency>
150150
</dependencies>
151151
</plugin>
152152
```

rewrite-weblogic/docs/procedures/upgrade-141200.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ You can run OpenRewrite recipes on your code folder using the Maven or Gradle CL
3030
3131
```
3232
mvn -U org.openrewrite.maven:rewrite-maven-plugin:run \
33-
-Drewrite.recipeArtifactCoordinates=com.oracle.weblogic.rewrite:rewrite-weblogic:LATEST,org.openrewrite.recipe:rewrite-migrate-java:RELEASE \
34-
-Drewrite.activeRecipes=com.oracle.weblogic.rewrite.UpgradeTo1412,org.openrewrite.java.migrate.UpgradeToJava21
33+
-Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-migrate-java:RELEASE,com.oracle.weblogic.rewrite:rewrite-weblogic:LATEST \
34+
-Drewrite.activeRecipes=org.openrewrite.java.migrate.UpgradeToJava21,com.oracle.weblogic.rewrite.UpgradeTo1412
3535
```
3636

3737
## Run using Maven with the `<plugin>` in the `pom.xml` file
@@ -42,25 +42,25 @@ mvn -U org.openrewrite.maven:rewrite-maven-plugin:run \
4242
<plugin>
4343
<groupId>org.openrewrite.maven</groupId>
4444
<artifactId>rewrite-maven-plugin</artifactId>
45-
<version>5.43.0</version>
45+
<version>6.3.1</version>
4646
<configuration>
4747
<exportDatatables>true</exportDatatables>
4848
<activeRecipes>
49-
<recipe>com.oracle.weblogic.rewrite.UpgradeTo1412</recipe>
5049
<recipe>org.openrewrite.java.migrate.UpgradeToJava21</recipe>
50+
<recipe>com.oracle.weblogic.rewrite.UpgradeTo1412</recipe>
5151
</activeRecipes>
5252
</configuration>
5353
<dependencies>
54+
<dependency>
55+
<groupId>org.openrewrite.recipe</groupId>
56+
<artifactId>rewrite-migrate-java</artifactId>
57+
<version>3.4.0</version>
58+
</dependency>
5459
<dependency>
5560
<groupId>com.oracle.weblogic.rewrite</groupId>
5661
<artifactId>rewrite-weblogic</artifactId>
5762
<version>[0.4.5,)</version>
5863
</dependency>
59-
<dependency>
60-
<groupId>org.openrewrite.recipe</groupId>
61-
<artifactId>rewrite-migrate-java</artifactId>
62-
<version>2.28.0</version>
63-
</dependency>
6464
</dependencies>
6565
</plugin>
6666
```
@@ -76,12 +76,12 @@ mvn -U org.openrewrite.maven:rewrite-maven-plugin:run \
7676

7777
```
7878
plugins {
79-
id("org.openrewrite.rewrite") version("7.1.4")
79+
id("org.openrewrite.rewrite") version("7.2.0")
8080
}
8181
8282
rewrite {
83-
activeRecipe("com.oracle.weblogic.rewrite.UpgradeTo1412")
8483
activeRecipe("org.openrewrite.java.migrate.UpgradeToJava21")
84+
activeRecipe("com.oracle.weblogic.rewrite.UpgradeTo1412")
8585
setExportDatatables(true)
8686
}
8787
@@ -90,7 +90,7 @@ repositories {
9090
}
9191
9292
dependencies {
93-
rewrite("org.openrewrite.recipe:rewrite-migrate-java:3.2.0")
93+
rewrite("org.openrewrite.recipe:rewrite-migrate-java:3.4.0")
9494
rewrite("com.oracle.weblogic.rewrite:rewrite-weblogic:+")
9595
}
9696
```

rewrite-weblogic/docs/procedures/upgrade-151100.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ You can run OpenRewrite recipes on your code folder using the Maven or Gradle CL
3030
3131
```
3232
mvn -U org.openrewrite.maven:rewrite-maven-plugin:run \
33-
-Drewrite.recipeArtifactCoordinates=com.oracle.weblogic.rewrite:rewrite-weblogic:LATEST,org.openrewrite.recipe:rewrite-migrate-java:RELEASE \
34-
-Drewrite.activeRecipes=com.oracle.weblogic.rewrite.UpgradeTo1511,com.oracle.weblogic.rewrite.JakartaEE9_1
33+
-Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-migrate-java:RELEASE,com.oracle.weblogic.rewrite:rewrite-weblogic:LATEST \
34+
-Drewrite.activeRecipes=com.oracle.weblogic.rewrite.JakartaEE9_1,com.oracle.weblogic.rewrite.UpgradeTo1511
3535
```
3636

3737
## Run using Maven with the `<plugin>` in the `pom.xml` file
@@ -42,24 +42,24 @@ mvn -U org.openrewrite.maven:rewrite-maven-plugin:run \
4242
<plugin>
4343
<groupId>org.openrewrite.maven</groupId>
4444
<artifactId>rewrite-maven-plugin</artifactId>
45-
<version>5.43.0</version>
45+
<version>6.31</version>
4646
<configuration>
4747
<exportDatatables>true</exportDatatables>
4848
<activeRecipes>
4949
<recipe>com.oracle.weblogic.rewrite.UpgradeTo1511</recipe>
5050
</activeRecipes>
5151
</configuration>
5252
<dependencies>
53+
<dependency>
54+
<groupId>org.openrewrite.recipe</groupId>
55+
<artifactId>rewrite-migrate-java</artifactId>
56+
<version>3.4.0</version>
57+
</dependency>
5358
<dependency>
5459
<groupId>com.oracle.weblogic.rewrite</groupId>
5560
<artifactId>rewrite-weblogic</artifactId>
5661
<version>[0.4.5,)</version>
5762
</dependency>
58-
<dependency>
59-
<groupId>org.openrewrite.recipe</groupId>
60-
<artifactId>rewrite-migrate-java</artifactId>
61-
<version>2.28.0</version>
62-
</dependency>
6363
</dependencies>
6464
</plugin>
6565
...
@@ -76,7 +76,7 @@ mvn -U org.openrewrite.maven:rewrite-maven-plugin:run \
7676

7777
```
7878
plugins {
79-
id("org.openrewrite.rewrite") version("7.1.4")
79+
id("org.openrewrite.rewrite") version("7.2.0")
8080
}
8181
8282
rewrite {
@@ -89,7 +89,7 @@ repositories {
8989
}
9090
9191
dependencies {
92-
rewrite("org.openrewrite.recipe:rewrite-migrate-java:3.2.0")
92+
rewrite("org.openrewrite.recipe:rewrite-migrate-java:3.4.0")
9393
rewrite("com.oracle.weblogic.rewrite:rewrite-weblogic:+")
9494
}
9595
```

rewrite-weblogic/docs/recipes/identify-deprecations.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ This recipe will identify, and comment out deprecated and removed APIs.
2121
<plugin>
2222
<groupId>org.openrewrite.maven</groupId>
2323
<artifactId>rewrite-maven-plugin</artifactId>
24-
<version>5.43.0</version>
24+
<version>6.3.1</version>
2525
<configuration>
2626
<exportDatatables>true</exportDatatables>
2727
<activeRecipes>
@@ -34,11 +34,6 @@ This recipe will identify, and comment out deprecated and removed APIs.
3434
<artifactId>rewrite-weblogic</artifactId>
3535
<version>[0.4.5,)</version>
3636
</dependency>
37-
<dependency>
38-
<groupId>org.openrewrite.recipe</groupId>
39-
<artifactId>rewrite-migrate-java</artifactId>
40-
<version>2.28.0</version>
41-
</dependency>
4237
</dependencies>
4338
</plugin>
4439
...

rewrite-weblogic/docs/recipes/jakarta-server-faces-2x.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,24 @@ This recipe will upgrade PrimeFaces, OmniFaces, and MyFaces libraries to Jakarta
2929
<plugin>
3030
<groupId>org.openrewrite.maven</groupId>
3131
<artifactId>rewrite-maven-plugin</artifactId>
32-
<version>5.43.0</version>
32+
<version>6.3.1</version>
3333
<configuration>
3434
<exportDatatables>true</exportDatatables>
3535
<activeRecipes>
3636
<recipe>com.oracle.weblogic.rewrite.jakarta.FacesMigrationToJakartaFaces2x</recipe>
3737
</activeRecipes>
3838
</configuration>
3939
<dependencies>
40+
<dependency>
41+
<groupId>org.openrewrite.recipe</groupId>
42+
<artifactId>rewrite-migrate-java</artifactId>
43+
<version>3.4.0</version>
44+
</dependency>
4045
<dependency>
4146
<groupId>com.oracle.weblogic.rewrite</groupId>
4247
<artifactId>rewrite-weblogic</artifactId>
4348
<version>[0.4.5,)</version>
4449
</dependency>
45-
<dependency>
46-
<groupId>org.openrewrite.recipe</groupId>
47-
<artifactId>rewrite-migrate-java</artifactId>
48-
<version>2.28.0</version>
49-
</dependency>
5050
</dependencies>
5151
</plugin>
5252
...

rewrite-weblogic/docs/recipes/jakarta-server-faces-3x.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -41,24 +41,24 @@ This recipe will find and replace legacy JSF namespaces and `javax` references w
4141
<plugin>
4242
<groupId>org.openrewrite.maven</groupId>
4343
<artifactId>rewrite-maven-plugin</artifactId>
44-
<version>5.43.0</version>
44+
<version>6.3.1</version>
4545
<configuration>
4646
<exportDatatables>true</exportDatatables>
4747
<activeRecipes>
4848
<recipe>com.oracle.weblogic.rewrite.Faces2xMigrationToJakarta3x</recipe>
4949
</activeRecipes>
5050
</configuration>
5151
<dependencies>
52+
<dependency>
53+
<groupId>org.openrewrite.recipe</groupId>
54+
<artifactId>rewrite-migrate-java</artifactId>
55+
<version>3.4.0</version>
56+
</dependency>
5257
<dependency>
5358
<groupId>com.oracle.weblogic.rewrite</groupId>
5459
<artifactId>rewrite-weblogic</artifactId>
5560
<version>[0.4.5,)</version>
5661
</dependency>
57-
<dependency>
58-
<groupId>org.openrewrite.recipe</groupId>
59-
<artifactId>rewrite-migrate-java</artifactId>
60-
<version>2.28.0</version>
61-
</dependency>
6262
</dependencies>
6363
</plugin>
6464
...

rewrite-weblogic/docs/recipes/migrate-to-jakarta-EE-9_1-namespaces.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -38,24 +38,24 @@ This recipe will help you migrate `javax` packages to `jakarta` EE 9.1.0.
3838
<plugin>
3939
<groupId>org.openrewrite.maven</groupId>
4040
<artifactId>rewrite-maven-plugin</artifactId>
41-
<version>5.43.0</version>
41+
<version>6.3.1</version>
4242
<configuration>
4343
<exportDatatables>true</exportDatatables>
4444
<activeRecipes>
4545
<recipe>com.oracle.weblogic.rewrite.jakarta.JakartaEeNamespaces9_1</recipe>
4646
</activeRecipes>
4747
</configuration>
4848
<dependencies>
49+
<dependency>
50+
<groupId>org.openrewrite.recipe</groupId>
51+
<artifactId>rewrite-migrate-java</artifactId>
52+
<version>3.4.0</version>
53+
</dependency>
4954
<dependency>
5055
<groupId>com.oracle.weblogic.rewrite</groupId>
5156
<artifactId>rewrite-weblogic</artifactId>
5257
<version>[0.4.5,)</version>
5358
</dependency>
54-
<dependency>
55-
<groupId>org.openrewrite.recipe</groupId>
56-
<artifactId>rewrite-migrate-java</artifactId>
57-
<version>2.28.0</version>
58-
</dependency>
5959
</dependencies>
6060
</plugin>
6161
...

rewrite-weblogic/docs/recipes/migrate-to-jakarta-EE-9_1.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -39,24 +39,24 @@ This recipe will migrate `javax` packages to `jakarta` and update Jakarta EE pla
3939
<plugin>
4040
<groupId>org.openrewrite.maven</groupId>
4141
<artifactId>rewrite-maven-plugin</artifactId>
42-
<version>5.43.0</version>
42+
<version>6.3.1</version>
4343
<configuration>
4444
<exportDatatables>true</exportDatatables>
4545
<activeRecipes>
4646
<recipe>com.oracle.weblogic.rewrite.JakartaEE9_1</recipe>
4747
</activeRecipes>
4848
</configuration>
4949
<dependencies>
50+
<dependency>
51+
<groupId>org.openrewrite.recipe</groupId>
52+
<artifactId>rewrite-migrate-java</artifactId>
53+
<version>3.4.0</version>
54+
</dependency>
5055
<dependency>
5156
<groupId>com.oracle.weblogic.rewrite</groupId>
5257
<artifactId>rewrite-weblogic</artifactId>
5358
<version>[0.4.5,)</version>
5459
</dependency>
55-
<dependency>
56-
<groupId>org.openrewrite.recipe</groupId>
57-
<artifactId>rewrite-migrate-java</artifactId>
58-
<version>2.28.0</version>
59-
</dependency>
6060
</dependencies>
6161
</plugin>
6262
...

0 commit comments

Comments
 (0)