Skip to content

Commit 217a629

Browse files
committed
Move systemProperties together
1 parent e1a8ed1 commit 217a629

File tree

1 file changed

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

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ class PaparazziPlugin : Plugin<Project> {
159159
test.systemProperties["paparazzi.build.dir"] =
160160
buildDirectory.get().toString()
161161
test.systemProperties["kotlinx.coroutines.main.delay"] = true
162+
test.systemProperties.putAll(project.properties.filterKeys { it.startsWith("app.cash.paparazzi") })
163+
162164
test.inputs.property("paparazzi.test.record", isRecordRun)
163165
test.inputs.property("paparazzi.test.verify", isVerifyRun)
164166

@@ -171,9 +173,6 @@ class PaparazziPlugin : Plugin<Project> {
171173
test.outputs.dir(reportOutputDir)
172174
test.outputs.dir(snapshotOutputDir)
173175

174-
val paparazziProperties = project.properties.filterKeys { it.startsWith("app.cash.paparazzi") }
175-
test.systemProperties.putAll(paparazziProperties)
176-
177176
@Suppress("ObjectLiteralToLambda")
178177
// why not a lambda? See: https://docs.gradle.org/7.2/userguide/validation_problems.html#implementation_unknown
179178
test.doFirst(object : Action<Task> {

0 commit comments

Comments
 (0)