File tree Expand file tree Collapse file tree 3 files changed +62
-4
lines changed
src/test/java/oracle/com/cloud/recipes/hikariucp Expand file tree Collapse file tree 3 files changed +62
-4
lines changed Original file line number Diff line number Diff line change
1
+ # Hikari to UCP Open Rewrite Recipe
2
+
3
+ ## Build the Open Rewrite Recipe
4
+
5
+ The repo is using maven. To build the recipe run the following command:
6
+
7
+ ``` shell
8
+ mvn install
9
+ ```
10
+
11
+ ## To use the Recipe
12
+
13
+ In the repository you want to test your recipe against, update the pom.xml to include the following:
14
+
15
+ ``` xml
16
+ <project >
17
+ <build >
18
+ <plugins >
19
+ <plugin >
20
+ <groupId >org.openrewrite.maven</groupId >
21
+ <artifactId >rewrite-maven-plugin</artifactId >
22
+ <version >6.2.2</version > <!-- Verify the version, March 2025 -->
23
+ <configuration >
24
+ <activeRecipes >
25
+ <recipe >ConvertHikariToUCP </recipe >
26
+ </activeRecipes >
27
+ </configuration >
28
+ <dependencies >
29
+ <dependency >
30
+ <groupId >java.oracle.com.cloud.recipes</groupId >
31
+ <artifactId >hikariucp</artifactId >
32
+ <version >0.0.1-SNAPSHOT</version >
33
+ </dependency >
34
+ </dependencies >
35
+ </plugin >
36
+ </plugins >
37
+ </build >
38
+ </project >
39
+ ```
Original file line number Diff line number Diff line change 6
6
xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
7
7
<modelVersion >4.0.0</modelVersion >
8
8
9
- <groupId >atael.example</groupId >
10
- <artifactId >hikari-ucp</artifactId >
11
- <version >1.0-SNAPSHOT</version >
9
+ <groupId >java.oracle.com.cloud.recipes</groupId >
10
+ <artifactId >hikariucp</artifactId >
11
+ <version >0.0.1-SNAPSHOT</version >
12
+ <name >hikari-ucp</name >
13
+ <description >Openrewrite Recipe to convert Hikari Connection Pool to Oracle UCP</description >
14
+
15
+ <url />
16
+ <licenses >
17
+ <license />
18
+ </licenses >
19
+ <developers >
20
+ <developer />
21
+ </developers >
22
+ <scm >
23
+ <connection />
24
+ <developerConnection />
25
+ <tag />
26
+ <url />
27
+ </scm >
12
28
13
29
<properties >
14
30
<java .version>17</java .version>
Original file line number Diff line number Diff line change
1
+ // Copyright (c) 2025, Oracle and/or its affiliates.
2
+ // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
3
+
1
4
package oracle .com .cloud .recipes .hikariucp ;
2
5
3
6
import org .junit .jupiter .api .Test ;
8
11
import static org .openrewrite .yaml .Assertions .yaml ;
9
12
10
13
class ChangeSpringPropertyValueTest implements RewriteTest {
11
-
14
+
12
15
// @DocumentExample
13
16
// @Test
14
17
// void propFile() {
You can’t perform that action at this time.
0 commit comments