realm-kotlin icon indicating copy to clipboard operation
realm-kotlin copied to clipboard

Unsupported Gradle configuration cache

Open phansier opened this issue 4 years ago • 1 comments

Trying to build project with Realm and org.gradle.unsafe.configuration-cache=true

Have an error:

Configuration cache problems found in this build.

1 problem was found storing the configuration cache.
- Plugin 'io.realm.kotlin': registration of listener on 'Gradle.addListener' is unsupported
  See https://docs.gradle.org/7.2/userguide/configuration_cache.html#config_cache:requirements:build_listeners

The possible cause is in file https://github.com/realm/realm-kotlin/blob/master/packages/gradle-plugin/src/main/kotlin/io/realm/gradle/RealmPlugin.kt#L32

phansier avatar Oct 09 '21 16:10 phansier

Thanks for the report. We will try to get rid of the listener to allow using the configuration cache.

rorbech avatar Oct 12 '21 11:10 rorbech

This seems to be fixed by https://github.com/realm/realm-kotlin/pull/669, isn't it?

ZsoltBertalan avatar Mar 22 '23 21:03 ZsoltBertalan