Uploaded image for project: 'Realm Java SDK'
  1. Realm Java SDK
  2. RJAVA-870

Incompatibility issue with Gradle configuration cache

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None

      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?

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: