Skip to content

Commit b97eccb

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 49b5b45 commit b97eccb

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
@@ -163,6 +163,7 @@ class PaparazziPlugin : Plugin<Project> {
163163
test.outputs.dir(snapshotOutputDir)
164164

165165
val paparazziProperties = project.properties.filterKeys { it.startsWith("app.cash.paparazzi") }
166+
test.systemProperties.putAll(paparazziProperties)
166167

167168
// Explicitly register these as inputs so that they are considered when determining up-to-date.
168169
// The properties become resolvable after the last afterEvaluate runs.
@@ -177,7 +178,6 @@ class PaparazziPlugin : Plugin<Project> {
177178
nativePlatformFileCollection.singleFile.absolutePath
178179
test.systemProperties["paparazzi.test.record"] = isRecordRun.get()
179180
test.systemProperties["paparazzi.test.verify"] = isVerifyRun.get()
180-
test.systemProperties.putAll(paparazziProperties)
181181
}
182182
})
183183
}

0 commit comments

Comments
 (0)