cashapp / paparazzi

Render your Android screens without a physical device or emulator
https://cashapp.github.io/paparazzi/
Apache License 2.0
2.23k stars 211 forks source link

1.3.4-SNAPSHOT causes configuration cache error when used with Google Services #1376

Closed joharei closed 1 month ago

joharei commented 3 months ago

Description This issue is very similar to #1369, but it is now failing because of Google Services. After updating to 1.3.4-20240409.090340, I am getting an error that seems like it's related to Gradle's configuration cache and a clash with the Google Services plugin:

Configuration cache state could not be cached: field `__projectResourceDirs__` of task `:app:preparePaparazziDebugResources` of type `app.cash.paparazzi.gradle.PrepareResourcesTask`: error writing value of type 'org.gradle.api.internal.provider.DefaultListProperty'
> Querying the mapped value of flatmap(provider(task 'processDebugGoogleServices', class com.google.gms.googleservices.GoogleServicesTask)) before task ':app:processDebugGoogleServices' has completed is not supported

If I run the task without configuration cache it runs fine:

./gradlew --no-configuration-cache verifyPaparazziDebug

This error does not happen on 1.3.3.

Steps to Reproduce

  1. Add the Google Services plugin to the project
  2. Update to Paparazzi 1.3.4-20240409.090340 (SNAPSHOT)
  3. Run verifyPaparazzi

Expected behavior Screenshot tests should run.

Additional information: