Skip to content

Commit 7857069

Browse files
committed
fixes
1 parent aee63c4 commit 7857069

File tree

3 files changed

+62
-4
lines changed

3 files changed

+62
-4
lines changed

recipes/hikari-ucp/README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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+
```

recipes/hikari-ucp/pom.xml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,25 @@
66
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
77
<modelVersion>4.0.0</modelVersion>
88

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>
1228

1329
<properties>
1430
<java.version>17</java.version>

recipes/hikari-ucp/src/test/java/oracle/com/cloud/recipes/hikariucp/ChangePropertyValueTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
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+
14
package oracle.com.cloud.recipes.hikariucp;
25

36
import org.junit.jupiter.api.Test;
@@ -8,7 +11,7 @@
811
import static org.openrewrite.yaml.Assertions.yaml;
912

1013
class ChangeSpringPropertyValueTest implements RewriteTest {
11-
14+
1215
// @DocumentExample
1316
// @Test
1417
// void propFile() {

0 commit comments

Comments
 (0)