Fix remote cache misses for checkstyle tasks (#45512)

This commit is contained in:
Mark Vieira 2019-08-13 16:02:44 -07:00
parent 4fcf7bbd07
commit b17bf70e04
No known key found for this signature in database
GPG Key ID: CA947EF7E6D4B105
2 changed files with 2 additions and 6 deletions

View File

@ -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
}

View File

@ -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 -->