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

Gradle Caching issue with AAR exploded resources when bumping dependencies. #1342

Closed geoff-powell closed 3 months ago

geoff-powell commented 3 months ago

Description When bumping a gradle dependency version that is packaged as an AAR with resources, the :preparePaparazziResources task doesn't correctly rerun and uses an older cached version from local/remote gradle cache. This can cause issues loading resources when the exploded aar directory no longer exists in your local gradle home cache directory.

Steps to Reproduce

Expected behavior Test regenerates resources file and tests always pass.

Additional information:

geoff-powell commented 3 months ago

Heads up, when debugging incorrect cache hits/misses, -Dorg.gradle.caching.debug=true property is very helpful understand the caching layer without relying on gradle build scans (docs).