Fix remote cache misses for checkstyle tasks (#45512)
This commit is contained in:
parent
4fcf7bbd07
commit
b17bf70e04
|
@ -237,16 +237,12 @@ class PrecommitTasks {
|
|||
// on them. We also want `precommit` to depend on `checkstyle`.
|
||||
project.pluginManager.apply('checkstyle')
|
||||
project.checkstyle {
|
||||
config = project.resources.text.fromFile(checkstyleConf, 'UTF-8')
|
||||
configProperties = [
|
||||
suppressions: checkstyleSuppressions
|
||||
]
|
||||
configDir = checkstyleDir
|
||||
toolVersion = CHECKSTYLE_VERSION
|
||||
}
|
||||
|
||||
project.tasks.withType(Checkstyle).configureEach { task ->
|
||||
task.dependsOn(copyCheckstyleConf)
|
||||
task.inputs.file(checkstyleSuppressions)
|
||||
task.reports {
|
||||
html.enabled false
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<property name="charset" value="UTF-8" />
|
||||
|
||||
<module name="SuppressionFilter">
|
||||
<property name="file" value="${suppressions}" />
|
||||
<property name="file" value="${config_loc}/checkstyle_suppressions.xml" />
|
||||
</module>
|
||||
|
||||
<!-- Checks Java files and forbids empty Javadoc comments -->
|
||||
|
|
Loading…
Reference in New Issue