From 71b08466a37cda2e1e4824b75707795967e9d9da Mon Sep 17 00:00:00 2001 From: shisheng-1 <240274530@qq.com> Date: Tue, 9 Nov 2021 09:47:24 +0800 Subject: [PATCH 1/3] Improve GRADLE build Performance --- build.gradle | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index ec1d182f22..e22855916e 100644 --- a/build.gradle +++ b/build.gradle @@ -102,6 +102,10 @@ rat { } allprojects { + tasks.withType(JavaCompile).configureEach { + options.fork = true + } + apply plugin: 'idea' // For all scala compilation, add extra compiler options, taken from version-specific @@ -834,4 +838,4 @@ project(":samza-test_$scalaSuffix") { // SAMZA-2473 read wrapper version from gradle.properties wrapper { gradleVersion = project.gradleVersion -} +} \ No newline at end of file From 5bd9faf979d1c6f8682dfed587cb17991ed2c454 Mon Sep 17 00:00:00 2001 From: shisheng-1 <85237617+shisheng-1@users.noreply.github.com> Date: Fri, 12 Nov 2021 10:48:50 +0800 Subject: [PATCH 2/3] use 2 spaces --- build.gradle | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index e22855916e..146e245b83 100644 --- a/build.gradle +++ b/build.gradle @@ -102,9 +102,9 @@ rat { } allprojects { - tasks.withType(JavaCompile).configureEach { - options.fork = true - } + tasks.withType(JavaCompile).configureEach { + options.fork = true + } apply plugin: 'idea' @@ -838,4 +838,4 @@ project(":samza-test_$scalaSuffix") { // SAMZA-2473 read wrapper version from gradle.properties wrapper { gradleVersion = project.gradleVersion -} \ No newline at end of file +} From 9d6a5d4ccc590efc4db75724a2772663f168a57f Mon Sep 17 00:00:00 2001 From: shisheng-1 <85237617+shisheng-1@users.noreply.github.com> Date: Fri, 12 Nov 2021 10:57:33 +0800 Subject: [PATCH 3/3] use "tasks.withType(JavaCompile)" --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 146e245b83..c8c8a95406 100644 --- a/build.gradle +++ b/build.gradle @@ -102,7 +102,7 @@ rat { } allprojects { - tasks.withType(JavaCompile).configureEach { + tasks.withType(JavaCompile) { options.fork = true }