[build] Always run Checkstyle after spotlessApply (#8794)

This avoids issues where Checkstyle will error on line length by having
Spotless run first and fix up line lengths before Checkstyle sees the
files.
This commit is contained in:
Gold856
2026-04-24 01:52:19 -04:00
committed by GitHub
parent 7fc8845424
commit 930340e8f0

View File

@@ -85,5 +85,9 @@ spotbugs {
task javaFormat {
dependsOn(tasks.withType(Checkstyle))
dependsOn(tasks.withType(Pmd))
dependsOn 'spotlessApply'
}
tasks.withType(Checkstyle) {
it.mustRunAfter 'spotlessApply'
}
javaFormat.dependsOn 'spotlessApply'