From abedaf62d975ed18b7ea9d1c57795c6a8af8919f Mon Sep 17 00:00:00 2001 From: epeee Date: Mon, 26 Nov 2018 21:11:13 +0100 Subject: [PATCH] Enable gradle build cache --- .gitignore | 1 + gradle.properties | 1 + settings.gradle | 7 +++++++ 3 files changed, 9 insertions(+) diff --git a/.gitignore b/.gitignore index b91f27c74a..9d0c115582 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,7 @@ bin/ # Gradle & builds build +build-cache target out .gradle diff --git a/gradle.properties b/gradle.properties index 41f55a5303..5970e287bb 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,3 @@ org.gradle.daemon=true org.gradle.parallel=true +org.gradle.caching=true diff --git a/settings.gradle b/settings.gradle index 8dd114e648..56bd8789e7 100644 --- a/settings.gradle +++ b/settings.gradle @@ -18,3 +18,10 @@ rootProject.children.each { project -> } enableFeaturePreview('STABLE_PUBLISHING') + +buildCache { + local(DirectoryBuildCache) { + directory = new File(rootDir, 'build-cache') + removeUnusedEntriesAfterDays = 30 + } +}