File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
gradle/plugins/common/src/main/kotlin Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,15 @@ plugins {
1818
1919rewrite {
2020 activeRecipe(" org.openrewrite.java.migrate.UpgradeToJava17" )
21+ activeRecipe(" org.openrewrite.staticanalysis.RemoveUnusedPrivateMethods" )
22+ activeRecipe(" org.openrewrite.staticanalysis.MissingOverrideAnnotation" )
23+ failOnDryRunResults = true
2124}
2225
2326dependencies {
2427 rewrite(platform(" org.openrewrite.recipe:rewrite-recipe-bom:latest.release" ))
2528 rewrite(" org.openrewrite.recipe:rewrite-migrate-java" )
29+ rewrite(" org.openrewrite.recipe:rewrite-static-analysis" )
2630}
2731
2832val mavenizedProjects: List <Project > by rootProject.extra
@@ -277,6 +281,10 @@ tasks {
277281 checkstyleMain {
278282 config = resources.text.fromFile(checkstyle.configDirectory.file(" checkstyleMain.xml" ))
279283 }
284+ assemble {
285+ dependsOn(" rewriteDryRun" )
286+ mustRunAfter(" rewriteDryRun" )
287+ }
280288 checkstyleTest {
281289 config = resources.text.fromFile(checkstyle.configDirectory.file(" checkstyleTest.xml" ))
282290 }
You can’t perform that action at this time.
0 commit comments