Skip to content

Commit 6ca6ed5

Browse files
committed
Add skip_snapshot_checks flag for snapshot train debuggability
1 parent e9f40c3 commit 6ca6ed5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.gradle

+2-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ allprojects {
8282
ext.kotlin_version = rootProject.properties['kotlin_snapshot_version']
8383
println "Using Kotlin $kotlin_version for project $it"
8484

85-
if (version != atomicfu_version) {
85+
def skipSnapshotChecks = rootProject.properties['skip_snapshot_checks'] != null
86+
if (!skipSnapshotChecks && version != atomicfu_version) {
8687
throw new IllegalStateException("Current deploy version is $version, but atomicfu version is not overridden ($atomicfu_version) for $it")
8788
}
8889

0 commit comments

Comments
 (0)