From 76ca970430f27047c14ed58656489433513eb3c7 Mon Sep 17 00:00:00 2001 From: Andriy Redko Date: Tue, 28 Jun 2022 20:24:31 -0400 Subject: [PATCH] Optimize Gradle builds by enabling local build caching (#3718) Signed-off-by: Andriy Redko (cherry picked from commit e734497d303ad2f937ebca71799cece2a1ba50c6) --- gradle.properties | 2 ++ settings.gradle | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/gradle.properties b/gradle.properties index 53b593923ce26..86af9ad62b1a4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,6 +9,8 @@ # GitHub history for details. # +# Enable build caching +org.gradle.caching=true org.gradle.warning.mode=none org.gradle.parallel=true org.gradle.jvmargs=-Xmx3g -XX:+HeapDumpOnOutOfMemoryError -Xss2m \ diff --git a/settings.gradle b/settings.gradle index a24b063f9fa96..e069bd2babe29 100644 --- a/settings.gradle +++ b/settings.gradle @@ -13,6 +13,13 @@ plugins { id "com.gradle.enterprise" version "3.10.1" } +buildCache { + local { + enabled = true + removeUnusedEntriesAfterDays = 14 + } +} + rootProject.name = "OpenSearch" include 'doc-tools'