这是indexloc提供的服务,不要输入任何密码
Skip to content

Incompatibility issue with Gradle configuration cache #7299

@sanogueralorenzo

Description

@sanogueralorenzo

The configuration cache is a feature that significantly improves build performance by caching the result of the configuration phase and reusing this for subsequent builds.

Implementing support for the configuration cache in this plugin would improve users experience by dramatically reducing build times.

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

The configuration cache is already available since Gradle 6.6.

When I run ./gradlew app:assembleRelease, and the configuration doesn't come from the cache, Gradle reports this error:

Task `:app:transformClassesWithRealmTransformerForDebug` of type
`com.android.build.gradle.internal.pipeline.TransformTask`: 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/6.8.1/userguide/configuration_cache.html#config_cache:requirements:disallowed_types

Are there any plans to support configuration cache?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions