Skip to content

Commit a232f86

Browse files
committed
Move paparazzi properties earlier, so they are playing in incremental builds.
It's a standard HashMap not a DomainObjectCollection, so there won't be any further items inserted between filterKeys and doFirst.
1 parent 5cdef0a commit a232f86

File tree

1 file changed

+1
-1
lines changed
  • paparazzi/paparazzi-gradle-plugin/src/main/java/app/cash/paparazzi/gradle

1 file changed

+1
-1
lines changed

paparazzi/paparazzi-gradle-plugin/src/main/java/app/cash/paparazzi/gradle/PaparazziPlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ class PaparazziPlugin : Plugin<Project> {
169169
test.outputs.dir(snapshotOutputDir)
170170

171171
val paparazziProperties = project.properties.filterKeys { it.startsWith("app.cash.paparazzi") }
172+
test.systemProperties.putAll(paparazziProperties)
172173

173174
// Explicitly register these as inputs so that they are considered when determining up-to-date.
174175
// The properties become resolvable after the last afterEvaluate runs.
@@ -184,7 +185,6 @@ class PaparazziPlugin : Plugin<Project> {
184185
test.systemProperties["paparazzi.test.record"] = isRecordRun.get()
185186
test.systemProperties["paparazzi.test.verify"] = isVerifyRun.get()
186187
test.systemProperties["kotlinx.coroutines.main.delay"] = true
187-
test.systemProperties.putAll(paparazziProperties)
188188
}
189189
})
190190
}

0 commit comments

Comments
 (0)