From fde08f012927a0268a42fa6324f1b2c94a08375e Mon Sep 17 00:00:00 2001 From: WANG CHAO <1229983126@qq.com> Date: Wed, 20 Feb 2019 00:05:23 +0800 Subject: [PATCH] build.gradle: fix checkstyle plugin failure The `checkstyle` plugin of Gradle fails in JDK11 and gives the error below: Unable to create Root Module: config ... The main reason is that, in JDK11, the `user.dir` cannot be reset by Gradle [1]. So, checkstyle plugin is unable to locate the suppressions file correctly. Let's add `config_loc` variable suggested by Gradle to solve the problem [1]. [1] https://github.com/gradle/gradle/issues/8286 --- config/checkstyle/checkstyle.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml index dbb5a48249d..24eaeb44965 100644 --- a/config/checkstyle/checkstyle.xml +++ b/config/checkstyle/checkstyle.xml @@ -26,7 +26,7 @@ - +