Shopify / android-testify

Add screenshots to your Android tests
https://testify.dev
MIT License
231 stars 23 forks source link

ScreenshotPullTask incompatible with gradle configuration cache #269

Closed DanielJette closed 2 years ago

DanielJette commented 2 years ago

Describe the bug

FAILURE: Build failed with an exception.

* What went wrong:
Configuration cache problems found in this build.

30 problems were found storing the configuration cache, 1 of which seems unique.
- Task `:Sample:screenshotPull` of type `dev.testify.tasks.main.ScreenshotPullTask`: invocation of 'Task.project' at execution time is unsupported.
  See https://docs.gradle.org/6.7.1/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution

> Invocation of 'Task.project' by task ':Sample:screenshotPull' at execution time is unsupported.
> Invocation of 'Task.project' by task ':Sample:screenshotPull' at execution time is unsupported.
> Invocation of 'Task.project' by task ':Sample:screenshotPull' at execution time is unsupported.
> Invocation of 'Task.project' by task ':Sample:screenshotPull' at execution time is unsupported.
> Invocation of 'Task.project' by task ':Sample:screenshotPull' at execution time is unsupported.

This issue relates to:

To Reproduce

  1. Add org.gradle.unsafe.configuration-cache=true to gradle.properties
  2. Run `./gradlew Sample:screenshotPullt

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Target Android Device (please complete the following information):

Additional context Add any other context about the problem here.

DanielJette commented 2 years ago

Moved to https://github.com/ndtp/android-testify/issues/79