@@ -807,9 +807,56 @@ under the License.</licenseText>
807807 </dependency >
808808 </dependencies >
809809 </plugin >
810+ <plugin >
811+ <groupId >org.openrewrite.maven</groupId >
812+ <artifactId >rewrite-maven-plugin</artifactId >
813+ <version >6.8.0</version >
814+ <configuration >
815+ <activeRecipes >
816+ <!-- BestPractices -->
817+ <!-- <recipe>org.openrewrite.java.recipes.JavaRecipeBestPractices</recipe> -->
818+ <!-- <recipe>org.openrewrite.java.recipes.RecipeNullabilityBestPractices</recipe> -->
819+ <!-- <recipe>org.openrewrite.java.recipes.RecipeTestingBestPractices</recipe> -->
820+ <!-- testing -->
821+ <!-- <recipe>org.openrewrite.java.testing.assertj.JUnitToAssertj</recipe> -->
822+ <!-- <recipe>org.openrewrite.java.testing.assertj.SimplifyAssertJAssertion</recipe> -->
823+ <!-- <recipe>org.openrewrite.java.testing.junit5.JUnit5BestPractices</recipe> -->
824+ <!-- staticanalysis -->
825+ <!-- <recipe>org.openrewrite.staticanalysis.CodeCleanup</recipe> -->
826+ <!-- <recipe>org.openrewrite.staticanalysis.CommonStaticAnalysis</recipe> -->
827+ <!-- <recipe>org.openrewrite.staticanalysis.FinalizeMethodArguments</recipe> -->
828+ <!-- <recipe>org.openrewrite.staticanalysis.RemoveUnusedLocalVariables</recipe> -->
829+ <!-- <recipe>org.openrewrite.staticanalysis.RemoveUnusedPrivateFields</recipe> -->
830+ <recipe >org.openrewrite.staticanalysis.RemoveUnusedPrivateMethods</recipe >
831+ </activeRecipes >
832+ <exportDatatables >true</exportDatatables >
833+ <failOnDryRunResults >true</failOnDryRunResults >
834+ </configuration >
835+ <dependencies >
836+ <dependency >
837+ <groupId >org.openrewrite.recipe</groupId >
838+ <artifactId >rewrite-static-analysis</artifactId >
839+ <version >2.9.0</version >
840+ </dependency >
841+ </dependencies >
842+ <executions >
843+ <execution >
844+ <id >rewrite-maven-plugin</id >
845+ <goals >
846+ <goal >dryRun</goal >
847+ </goals >
848+ <phase >verify</phase >
849+ </execution >
850+ </executions >
851+ </plugin >
810852 </plugins >
811853 </pluginManagement >
812854 <plugins >
855+ <!-- undo-->
856+ <plugin >
857+ <groupId >org.openrewrite.maven</groupId >
858+ <artifactId >rewrite-maven-plugin</artifactId >
859+ </plugin >
813860 <plugin >
814861 <groupId >io.github.olamy.maven.plugins</groupId >
815862 <artifactId >jacoco-aggregator-maven-plugin</artifactId >
@@ -1170,5 +1217,19 @@ under the License.</licenseText>
11701217 </plugins >
11711218 </build >
11721219 </profile >
1220+ <profile >
1221+ <id >rewrite</id >
1222+ <activation >
1223+ <activeByDefault >true</activeByDefault >
1224+ </activation >
1225+ <build >
1226+ <plugins >
1227+ <plugin >
1228+ <groupId >org.openrewrite.maven</groupId >
1229+ <artifactId >rewrite-maven-plugin</artifactId >
1230+ </plugin >
1231+ </plugins >
1232+ </build >
1233+ </profile >
11731234 </profiles >
11741235</project >
0 commit comments