This is an automated email from the ASF dual-hosted git repository.
jshao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/main by this push:
new 8cc84d85a0 [MINOR] improvement: Add more style rules (#9451)
8cc84d85a0 is described below
commit 8cc84d85a0d5f22672e82b0f946868ac3ff7afcb
Author: roryqi <[email protected]>
AuthorDate: Thu Dec 11 10:10:21 2025 +0800
[MINOR] improvement: Add more style rules (#9451)
### 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.
---
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/***")
}