This is an automated email from the ASF dual-hosted git repository. pkarwasz pushed a commit to branch 2.x in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
commit 72152f7c68eb321f6e7e59497e3d164932463366 Author: Piotr P. Karwasz <[email protected]> AuthorDate: Mon Nov 20 21:05:50 2023 +0100 Add OpenRewrite configuration --- pom.xml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/pom.xml b/pom.xml index 8827c109a9..6ec1c0ecbe 100644 --- a/pom.xml +++ b/pom.xml @@ -875,6 +875,41 @@ </build> </profile> + <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.logging.log4j.ParameterizedLogging</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>
