Failed to serialize configuration cache entry: Configuration Cache serialization failure with custom task classes
Context The Gradle Configuration Cache aims to eliminate configuration-phase bottlenecks by caching the build graph, but it requires all build logic to be serializable. Custom task classes that capture non-transient state — such as file handles, database connections, or mutable collections — trigger the error "Failed to serialize configuration cache entry" w