This is an automated email from the ASF dual-hosted git repository.

chenguangsheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/eventmesh.git


The following commit(s) were added to refs/heads/master by this push:
     new f2cb8cb07 Fix the bug of CI
     new 66a652afc Merge pull request #4000 from pandaapo/master-issue3999
f2cb8cb07 is described below

commit f2cb8cb0761a92ccdce2d319e739e56cddc4def9
Author: pandaapo <[email protected]>
AuthorDate: Mon May 22 15:45:57 2023 +0800

    Fix the bug of CI
---
 build.gradle         | 1 +
 style/checkStyle.xml | 6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/build.gradle b/build.gradle
index 920c39072..eea9d8581 100644
--- a/build.gradle
+++ b/build.gradle
@@ -81,6 +81,7 @@ allprojects {
         showViolations = true
         maxWarnings = 0
         configFile = new File("${rootDir}/style/checkStyle.xml")
+        configDirectory = file("${rootDir}/style")
     }
 
     checkstyleMain.exclude '**/org/apache/eventmesh/client/grpc/protos**'
diff --git a/style/checkStyle.xml b/style/checkStyle.xml
index c30dffa0e..cfa197289 100644
--- a/style/checkStyle.xml
+++ b/style/checkStyle.xml
@@ -27,15 +27,15 @@
   <property name="fileExtensions" value="java, properties, xml, gradle, env, 
sh"/>
   <module name="SuppressWarningsFilter" />
   <module name="Header">
-    <property name="headerFile" value="/checkstyle-header1.txt"/>
+    <property name="headerFile" value="${config_loc}/checkstyle-header1.txt"/>
     <property name="fileExtensions" value="java, gradle"/>
   </module>
   <module name="Header">
-    <property name="headerFile" value="/checkstyle-header2.txt"/>
+    <property name="headerFile" value="${config_loc}/checkstyle-header2.txt"/>
     <property name="fileExtensions" value="properties, env"/>
   </module>
   <module name="Header">
-    <property name="headerFile" value="/checkstyle-header3.txt"/>
+    <property name="headerFile" value="${config_loc}/checkstyle-header3.txt"/>
     <property name="fileExtensions" value="sh"/>
   </module>
   <module name="RegexpSingleline">


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to