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 + } +}