Skip to content

Commit

Permalink
Optimize Gradle builds by enabling local build caching (#3718) (#3737)
Browse files Browse the repository at this point in the history
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
(cherry picked from commit e734497)

Co-authored-by: Andriy Redko <andriy.redko@aiven.io>
  • Loading branch information
opensearch-trigger-bot[bot] and reta authored Jun 29, 2022
1 parent 7845dd5 commit 63cba7d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
7 changes: 7 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 63cba7d

Please sign in to comment.