Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dependencies task support for configuration cache #19095

Closed
mathjeff opened this issue Nov 23, 2021 · 1 comment
Closed

dependencies task support for configuration cache #19095

mathjeff opened this issue Nov 23, 2021 · 1 comment
Labels
a:bug closed:duplicate Duplicated or superseeded by another issue @configuration-cache

Comments

@mathjeff
Copy link
Contributor

Expected Behavior

Running ./gradlew :subproject:dependencies && ./gradlew :subproject:dependencies should succeed even if configuration caching is enabled

Current Behavior

Running ./gradlew :subproject:dependencies && ./gradlew :subproject:dependencies fails because the set of dependencies has been discarded

frameworks/support$ ./gradlew viewpager2:viewpager2:dependencies
Configuration cache is an incubating feature.
Reusing configuration cache.
> Task :viewpager2:viewpager2:dependencies FAILED

1 problem was found reusing the configuration cache.
- Task `:viewpager2:viewpager2:dependencies` of type `org.gradle.api.tasks.diagnostics.DependencyReportTask`: cannot deserialize object of type 'org.gradle.api.artifacts.Configuration' as these are not supported with the configuration cache.
  See https://docs.gradle.org/7.2/userguide/configuration_cache.html#config_cache:requirements:disallowed_types

See the complete report at file:///Users/jellefresen/workspace/android/androidx-compose/frameworks/support/build/reports/configuration-cache/9y7v26ujv7wt5ov514l2f5976/4c6ykuuvrws934qp4ff0uw25c/configuration-cache-report.html

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':viewpager2:viewpager2:dependencies'.
> The value of this property has been discarded during serialization.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 892ms
1 actionable task: 1 executed
Configuration cache entry reused with 1 problem.
@eskatos
Copy link
Member

eskatos commented Nov 24, 2021

Thanks @mathjeff
Closing as a duplicate of #17470

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:bug closed:duplicate Duplicated or superseeded by another issue @configuration-cache
Projects
None yet
Development

No branches or pull requests

2 participants