Skip to content

Commit 035df98

Browse files
author
Vincent Potucek
committed
activate unused rewrite checks failOnDryRunResults
1 parent 942a2f8 commit 035df98

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

gradle/plugins/common/src/main/kotlin/junitbuild.java-library-conventions.gradle.kts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,17 @@ plugins {
1818

1919
rewrite {
2020
activeRecipe("org.openrewrite.java.migrate.UpgradeToJava17")
21+
activeRecipe("org.openrewrite.staticanalysis.RemoveUnusedPrivateMethods")
22+
activeRecipe("org.openrewrite.staticanalysis.MissingOverrideAnnotation")
23+
failOnDryRunResults = true
2124
}
2225

2326
dependencies {
24-
rewrite(platform("org.openrewrite.recipe:rewrite-recipe-bom:latest.release"))
27+
// https://github.com/openrewrite/rewrite/issues/5677
28+
// rewrite(platform("org.openrewrite.recipe:rewrite-recipe-bom:latest.release"))
29+
rewrite(platform("org.openrewrite.recipe:rewrite-recipe-bom:3.10.0"))
2530
rewrite("org.openrewrite.recipe:rewrite-migrate-java")
31+
rewrite("org.openrewrite.recipe:rewrite-static-analysis")
2632
}
2733

2834
val mavenizedProjects: List<Project> by rootProject.extra
@@ -280,6 +286,9 @@ tasks {
280286
checkstyleTest {
281287
config = resources.text.fromFile(checkstyle.configDirectory.file("checkstyleTest.xml"))
282288
}
289+
check {
290+
dependsOn("rewriteDryRun")
291+
}
283292
}
284293

285294
pluginManager.withPlugin("java-test-fixtures") {

0 commit comments

Comments
 (0)