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

Support for Gradle configuration cache #66

Closed
klusi opened this issue May 13, 2022 · 1 comment · Fixed by #68
Closed

Support for Gradle configuration cache #66

klusi opened this issue May 13, 2022 · 1 comment · Fixed by #68
Labels

Comments

@klusi
Copy link

klusi commented May 13, 2022

It's not possible to enable Gradle configuration Cache in projects using BuildKonfig.

When i have in root gradle.properties file:
org.gradle.unsafe.configuration-cache=true

I get these errors during build

Configuration cache problems found in this build.

86 problems were found storing the configuration cache.
- Task `:shared:accountNavigation:generateBuildKonfig` of type `com.codingfeline.buildkonfig.gradle.BuildKonfigTask`: cannot serialize object of type 'org.gradle.api.internal.project.DefaultProject', a subtype of 'org.gradle.api.Project', as these are not supported with the configuration cache.
See https://docs.gradle.org/7.4.1/userguide/configuration_cache.html#config_cache:requirements:disallowed_types
- Task `:shared:action:generateBuildKonfig` of type `com.codingfeline.buildkonfig.gradle.BuildKonfigTask`: cannot serialize object of type 'org.gradle.api.internal.project.DefaultProject', a subtype of 'org.gradle.api.Project', as these are not supported with the configuration cache.
...
See https://docs.gradle.org/7.4.1/userguide/configuration_cache.html#config_cache:requirements:disallowed_types
plus 71 more problems. Please see the report for details.
@yshrsmz
Copy link
Owner

yshrsmz commented May 16, 2022

v0.12.0 is out with Gradle configuration cache support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants