<NME> settings.gradle
<BEF> /*
 * Enterprise plugin replaces Build scan plugin from gradle 6, see https://docs.gradle.com/enterprise/gradle-plugin/
 */
plugins {
    id 'com.gradle.enterprise' version '3.11.2'
include ':mapswithme-api'
include ':main'
include ':cgeo-contacts'
// Gradle will periodically clean-up by removing entries that have not been used recently
buildCache {
    local() {
        directory = new File(rootDir, 'build-cache')
        removeUnusedEntriesAfterDays = 30
    }
}

gradleEnterprise {
    buildScan {
        termsOfServiceUrl = "https://gradle.com/terms-of-service"
        termsOfServiceAgree = "yes"
    }
}

<MSG> configure gradle build cache
fix #6477

- activate build cache
- configure cache dir and creanup time

<DFF> @@ -6,3 +6,12 @@ rootProject.name = "cgeo"
 include ':mapswithme-api'
 include ':main'
 include ':cgeo-contacts'
+
+// Configure the built-in local build cache to a pre-defined directory.
+// Gradle will periodically clean-up by removing entries that have not been used recently
+buildCache {
+    local(DirectoryBuildCache) {
+        directory = new File(rootDir, 'build-cache')
+        removeUnusedEntriesAfterDays = 10
+    }
+}

configure gradle build cache fix #6477