realm-kotlin
realm-kotlin copied to clipboard
Unsupported Gradle configuration cache
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
Thanks for the report. We will try to get rid of the listener to allow using the configuration cache.
This seems to be fixed by https://github.com/realm/realm-kotlin/pull/669, isn't it?