|
@@ -34,6 +34,9 @@ import org.gradle.api.plugins.quality.Checkstyle
|
|
|
class PrecommitTasks {
|
|
|
|
|
|
/** Adds a precommit task, which depends on non-test verification tasks. */
|
|
|
+
|
|
|
+ public static final String CHECKSTYLE_VERSION = '8.20'
|
|
|
+
|
|
|
public static Task create(Project project, boolean includeDependencyLicenses) {
|
|
|
project.configurations.create("forbiddenApisCliJar")
|
|
|
project.dependencies {
|
|
@@ -213,7 +216,7 @@ class PrecommitTasks {
|
|
|
configProperties = [
|
|
|
suppressions: checkstyleSuppressions
|
|
|
]
|
|
|
- toolVersion = '8.10.1'
|
|
|
+ toolVersion = CHECKSTYLE_VERSION
|
|
|
}
|
|
|
|
|
|
project.tasks.withType(Checkstyle) { task ->
|