Skip to content

Commit

Permalink
update(pom.xml): add openrewrite with custom style
Browse files Browse the repository at this point in the history
  • Loading branch information
timo-a committed May 2, 2024
1 parent cfea42e commit 4e44f2d
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -316,4 +316,36 @@ com.fasterxml.jackson.core.*;version=${project.version}
</dependency>
</dependencies>

<profiles>
<profile>
<id>openrewrite</id>
<!-- `mvn -P openrewrite org.openrewrite.maven:rewrite-maven-plugin:run` -->
<build>
<plugins>
<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<version>5.29.0</version>
<configuration>
<activeRecipes>
<recipe>org.openrewrite.java.OrderImports</recipe>
</activeRecipes>
<activeStyles>
<style>com.yourorg.JacksonImportStyle</style>
</activeStyles>
<failOnDryRunResults>true</failOnDryRunResults>
</configuration>
<dependencies>
<dependency>
<groupId>com.yourorg</groupId>
<artifactId>rewrite-recipe-starter</artifactId>
<version>0.1.0-SNAPSHOT</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>

0 comments on commit 4e44f2d

Please sign in to comment.