This is an automated email from the ASF dual-hosted git repository.

pkarwasz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git

commit fe7ac81dab6b9aa36e1ca5734d0c41aed9db4b47
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Mon Nov 20 21:05:50 2023 +0100

    Add OpenRewrite configuration
---
 pom.xml | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/pom.xml b/pom.xml
index 27c304b60b..68b44e401f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -899,4 +899,42 @@
 
     </plugins>
   </build>
+
+  <profiles>
+    <profile>
+      <id>rewrite</id>
+
+      <properties>
+        <skipTests>true</skipTests>
+      </properties>
+
+      <build>
+        <defaultGoal>clean package rewrite:runNoFork 
spotless:apply</defaultGoal>
+        <plugins>
+          <plugin>
+            <groupId>org.openrewrite.maven</groupId>
+            <artifactId>rewrite-maven-plugin</artifactId>
+            <version>5.13.0</version>
+            <configuration>
+              <activeRecipes>
+                
<activeRecipe>org.openrewrite.java.migrate.Java8toJava11</activeRecipe>
+              </activeRecipes>
+            </configuration>
+            <dependencies>
+              <dependency>
+                <groupId>org.openrewrite.recipe</groupId>
+                <artifactId>rewrite-migrate-java</artifactId>
+                <version>2.3.0</version>
+              </dependency>
+              <dependency>
+                <groupId>org.openrewrite.recipe</groupId>
+                <artifactId>rewrite-logging-frameworks</artifactId>
+                <version>2.1.0</version>
+              </dependency>
+            </dependencies>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>

Reply via email to