Skip to content

Enable Gradle Configuration Cache #1622

@Jolanrensen

Description

@Jolanrensen

The Configuration Cache improves build performance by caching the result of the configuration phase and reusing it for subsequent builds.

https://docs.gradle.org/current/userguide/configuration_cache.html

Who knows how far we'll get to enabling configuration cache. Our project is quite complex after all... However, to improve build time, this would be a fantastic goal!

It probably needs to be broken down into smaller steps. For one, I know KoDEx doesn't yet support configuration cache. We will also need to revisit other interconnected dependencies of tasks and builds.

Current collection of warnings enabling configuration cache:

13 problems were found storing the configuration cache, 10 of which seem unique.
- Task `:core:changeJarTask` of type `org.gradle.api.DefaultTask`: cannot serialize Gradle script object references as these are not supported with the configuration cache.
- Task `:core:processKDocsMain` of type `nl.jolanrensen.kodex.gradle.RunKodexTask`: 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.
- Task `:dataframe-csv:changeJarTask` of type `org.gradle.api.DefaultTask`: cannot serialize Gradle script object references as these are not supported with the configuration cache.
- Task `:dataframe-csv:processKDocsMain` of type `nl.jolanrensen.kodex.gradle.RunKodexTask`: 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.
- Task `:plugins:dataframe-gradle-plugin:processIntegrationTestResources` of type `org.gradle.language.jvm.tasks.ProcessResources`: 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.
- Task `:plugins:dataframe-gradle-plugin:processResources` of type `org.gradle.language.jvm.tasks.ProcessResources`: 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.
- Task `:plugins:dataframe-gradle-plugin:processTestResources` of type `org.gradle.language.jvm.tasks.ProcessResources`: 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.
- Task `:plugins:expressions-converter:test` of type `org.gradle.api.tasks.testing.Test`: cannot serialize Gradle script object references as these are not supported with the configuration cache.
- Task `:plugins:kotlin-dataframe:test` of type `org.gradle.api.tasks.testing.Test`: cannot serialize Gradle script object references as these are not supported with the configuration cache.
- Task `:core:changeJarTask` of type `org.gradle.api.DefaultTask`: invocation of 'Task.project' at execution time is unsupported with the configuration cache.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestinfrastructureGitHub actions, Gradle Scripts, Writerside, etc.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions