This is an automated email from the ASF dual-hosted git repository. yuqi4733 pushed a commit to branch internal-main in repository https://gitbox.apache.org/repos/asf/gravitino.git
commit 8ce2c5a4d611079741302337383f349012817b0a 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/***") }
