facebook / screenshot-tests-for-android

Generate fast deterministic screenshots during Android instrumentation tests
http://facebook.github.io/screenshot-tests-for-android
Apache License 2.0
1.74k stars 229 forks source link

Plugin is not compatible with Gradle 7 #281

Closed lwasyl closed 3 years ago

lwasyl commented 3 years ago

When running screenshot tests with Gradle 7 I see the following errors:

* What went wrong:
Some problems were found with the configuration of task ':<project>:cleanDebugAndroidTestScreenshots' (type 'CleanScreenshotsTask').
  - Type 'CleanScreenshotsTask' property 'extension' is missing an input or output annotation.

    Reason: A property without annotation isn't considered during up-to-date checking.

    Possible solutions:

      1. Add an input or output annotation.

      2. Mark it as @Internal.

    Please refer to https://docs.gradle.org/7.0/userguide/validation_problems.html#missing_annotation for more details about this problem.

  - Type 'CleanScreenshotsTask' property 'variant' is missing an input or output annotation.

    Reason: A property without annotation isn't considered during up-to-date checking.

    Possible solutions:

      1. Add an input or output annotation.

      2. Mark it as @Internal.

    Please refer to https://docs.gradle.org/7.0/userguide/validation_problems.html#missing_annotation for more details about this problem.

It didn't go further so it's possible that other tasks miss annotation as well