This is an automated email from the ASF dual-hosted git repository.
davidarthur pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git
The following commit(s) were added to refs/heads/trunk by this push:
new c9209892053 MINOR Set min and max heap for Checkstyle (#18071)
c9209892053 is described below
commit c9209892053a8c75e532e4d857e7800f63cc6455
Author: TaiJuWu <[email protected]>
AuthorDate: Fri Dec 6 23:40:21 2024 +0800
MINOR Set min and max heap for Checkstyle (#18071)
This patch sets the max heap for Checkstyle to 1g to avoid OOM during the
CI build
Reviewers: David Arthur <[email protected]>
---
build.gradle | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/build.gradle b/build.gradle
index b1bcf2e338b..0dadfa4beac 100644
--- a/build.gradle
+++ b/build.gradle
@@ -203,6 +203,11 @@ allprojects {
options.links
"https://docs.oracle.com/en/java/javase/${JavaVersion.current().majorVersion}/docs/api/"
}
+ tasks.withType(Checkstyle) {
+ minHeapSize = "200m"
+ maxHeapSize = "1g"
+ }
+
clean {
delete "${projectDir}/src/generated"
delete "${projectDir}/src/generated-test"