Skip to content

Commit b16c6f2

Browse files
authored
Use snapshot version scheme locally to allow for better caching (#5366)
1 parent f0059b5 commit b16c6f2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

settings.gradle.kts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,16 @@ plugins {
2424
}
2525

2626
reckon {
27+
val isCiBuild = providers.environmentVariable("CI").isPresent
28+
2729
setDefaultInferredScope("patch")
28-
stages("beta", "final")
30+
if (!isCiBuild) {
31+
// Use a snapshot version scheme with Reckon when not running in CI, which allows caching to
32+
// improve performance. Background: https://github.com/home-assistant/android/issues/5220.
33+
snapshots()
34+
} else {
35+
stages("beta", "final")
36+
}
2937
setScopeCalc { java.util.Optional.of(org.ajoberstar.reckon.core.Scope.PATCH) }
3038
setStageCalc(calcStageFromProp())
3139
setTagWriter { it.toString() }

0 commit comments

Comments
 (0)