Skip to content

Commit 1082559

Browse files
committed
use local build cache in dev mode
1 parent e33eedd commit 1082559

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ target
1111
**/build/
1212
**/generated/
1313
examples/**/build/
14+
build-cache/
1415

1516
# Eclipse #
1617
###########

settings.gradle.kts

+9-2
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,15 @@ if (useScansGradleCom) {
8181
}
8282

8383
buildCache {
84-
remote(develocity.buildCache) {
85-
isPush = isCI && geAccessKey.isNotEmpty()
84+
if (System.getProperty("dev") == "true") {
85+
local {
86+
directory = File(rootDir, "build-cache")
87+
removeUnusedEntriesAfterDays = 30
88+
}
89+
} else {
90+
remote(develocity.buildCache) {
91+
isPush = isCI && geAccessKey.isNotEmpty()
92+
}
8693
}
8794
}
8895
}

0 commit comments

Comments
 (0)