Run spotless after javac (#12012) (#12015)

This commit is contained in:
Dawid Weiss 2022-12-13 08:42:04 +01:00 committed by GitHub
parent 06f9179295
commit 486003833f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -92,6 +92,11 @@ configure(project(":lucene").subprojects) { prj ->
project.mkdir("${buildDir}/spotless/spotlessJava")
}
}
// Schedule the core formatting task to run after Java compilation (GH-12012)
spotlessJava {
mustRunAfter tasks.withType(JavaCompile)
}
}
// Emit a custom message about how to fix formatting errors.