@@ -796,9 +796,60 @@ under the License.</licenseText>
796796 </excludes >
797797 </configuration >
798798 </plugin >
799+ <plugin >
800+ <groupId >org.openrewrite.maven</groupId >
801+ <artifactId >rewrite-maven-plugin</artifactId >
802+ <version >6.8.0</version >
803+ <configuration >
804+ <activeRecipes >
805+ <!-- BestPractices -->
806+ <!-- <recipe>org.openrewrite.java.recipes.JavaRecipeBestPractices</recipe> -->
807+ <!-- <recipe>org.openrewrite.java.recipes.RecipeNullabilityBestPractices</recipe> -->
808+ <!-- <recipe>org.openrewrite.java.recipes.RecipeTestingBestPractices</recipe> -->
809+ <!-- testing -->
810+ <!-- <recipe>org.openrewrite.java.testing.assertj.JUnitToAssertj</recipe> -->
811+ <!-- <recipe>org.openrewrite.java.testing.assertj.SimplifyAssertJAssertion</recipe> -->
812+ <!-- <recipe>org.openrewrite.java.testing.junit5.JUnit5BestPractices</recipe> -->
813+ <!-- staticanalysis -->
814+ <!-- <recipe>org.openrewrite.staticanalysis.CodeCleanup</recipe> -->
815+ <!-- <recipe>org.openrewrite.staticanalysis.CommonStaticAnalysis</recipe> -->
816+ <!-- <recipe>org.openrewrite.staticanalysis.RemoveUnusedLocalVariables</recipe> -->
817+ <!-- <recipe>org.openrewrite.staticanalysis.RemoveUnusedPrivateFields</recipe> -->
818+ <recipe >org.openrewrite.staticanalysis.RemoveUnusedPrivateMethods</recipe >
819+ </activeRecipes >
820+ <exportDatatables >true</exportDatatables >
821+ <failOnDryRunResults >true</failOnDryRunResults >
822+ <exclusions >
823+ <!-- wait for suppression: RemoveUnusedPrivateMethods -->
824+ <exclusion >src/mdo/java/WrapperList.java</exclusion >
825+ <exclusion >src/mdo/java/WrapperProperties.java</exclusion >
826+ </exclusions >
827+ </configuration >
828+ <dependencies >
829+ <dependency >
830+ <groupId >org.openrewrite.recipe</groupId >
831+ <artifactId >rewrite-static-analysis</artifactId >
832+ <version >2.9.0</version >
833+ </dependency >
834+ </dependencies >
835+ <executions >
836+ <execution >
837+ <id >rewrite-maven-plugin</id >
838+ <goals >
839+ <goal >dryRun</goal >
840+ </goals >
841+ <phase >verify</phase >
842+ </execution >
843+ </executions >
844+ </plugin >
799845 </plugins >
800846 </pluginManagement >
801847 <plugins >
848+ <!-- undo-->
849+ <plugin >
850+ <groupId >org.openrewrite.maven</groupId >
851+ <artifactId >rewrite-maven-plugin</artifactId >
852+ </plugin >
802853 <plugin >
803854 <groupId >io.github.olamy.maven.plugins</groupId >
804855 <artifactId >jacoco-aggregator-maven-plugin</artifactId >
@@ -1159,5 +1210,19 @@ under the License.</licenseText>
11591210 </plugins >
11601211 </build >
11611212 </profile >
1213+ <profile >
1214+ <id >rewrite</id >
1215+ <activation >
1216+ <activeByDefault >true</activeByDefault >
1217+ </activation >
1218+ <build >
1219+ <plugins >
1220+ <plugin >
1221+ <groupId >org.openrewrite.maven</groupId >
1222+ <artifactId >rewrite-maven-plugin</artifactId >
1223+ </plugin >
1224+ </plugins >
1225+ </build >
1226+ </profile >
11621227 </profiles >
11631228</project >
0 commit comments