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

roryqi pushed a commit to branch branch-1.1
in repository https://gitbox.apache.org/repos/asf/gravitino.git


The following commit(s) were added to refs/heads/branch-1.1 by this push:
     new e0378bd497 [MINOR] improvement: Add more style rules (#9452)
e0378bd497 is described below

commit e0378bd497dd5e9659af6402c279d7ba17c15f72
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Dec 11 14:26:06 2025 +0800

    [MINOR] improvement: Add more style rules (#9452)
    
    ### What changes were proposed in this pull request?
    
    Add more style rules
    
    ### Why are the changes needed?
    
    Just add more style rules.
    We shouldn't use avro shaded guava libs.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    No.
    
    Co-authored-by: roryqi <[email protected]>
---
 build.gradle.kts | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/build.gradle.kts b/build.gradle.kts
index 92e27d2955..4f188a33ca 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -144,6 +144,21 @@ allprojects {
           "import\\s+org\\.glassfish\\.jersey\\.internal\\.guava\\.Lists;",
           "import com.google.common.collect.Lists;"
         )
+        replaceRegex(
+          "Use Guava Sets instead of shadowed Avro Sets",
+          
"import\\s+org\\.apache\\.avro\\.shaded\\.com\\.google\\.common\\.collect\\.Sets;",
+          "import com.google.common.collect.Sets;"
+        )
+        replaceRegex(
+          "Use Guava Maps instead of shadowed Avro Maps",
+          
"import\\s+org\\.apache\\.avro\\.shaded\\.com\\.google\\.common\\.collect\\.Maps;",
+          "import com.google.common.collect.Maps;"
+        )
+        replaceRegex(
+          "Use Guava Lists instead of shadowed Avro Lists",
+          
"import\\s+org\\.apache\\.avro\\.shaded\\.com\\.google\\.common\\.collect\\.Lists;",
+          "import com.google.common.collect.Lists;"
+        )
 
         targetExclude("**/build/**", "**/.pnpm/***")
       }

Reply via email to