yshrsmz/BuildKonfig

Support for Gradle configuration cache

klusi opened this issue · 1 comments

klusi commented

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.

v0.12.0 is out with Gradle configuration cache support.