You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Gradle Configuration Cache support for plugin #948
- Plugin 'io.objectbox': read system property 'sun.arch.data.model'
See https://docs.gradle.org/7.0.2/userguide/configuration_cache.html#config_cache:requirements:undeclared_sys_prop_read
- Task `:app:objectboxPrepareBuild` of type `io.objectbox.gradle.PrepareTask`: 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/7.0.2/userguide/configuration_cache.html#config_cache:requirements:disallowed_types
- Task `:app:transformClassesWithObjectBoxAndroidTransformForProdNotEncryptedRelease` 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/7.0.2/userguide/configuration_cache.html#config_cache:requirements:disallowed_types
To Reproduce
Steps to reproduce the behaviour:
Use Android studio Arctic fox
Create a sample project using object box library
Go to build analyzer(this appears when a build has succeeded)
Optimize configuration steps
It will show that ObjectBox plugin is not compatible
Run Try Configuration cache in a build
Now in build logs, it will print the logs(as attached by me previously)
@greenrobot Looks like you closed both of tickets as duplicate of each other ;-D
For us it is pretty important change and if needed we can help to contribute or tailor some deal around that. If needed we can continue communication in other channel.
@vdmitrovich This issue is still open? Anyhow, I assume this means that the latest version of the ObjectBox Gradle plugin still is incompatible with the configuration cache (I haven't checked lately)?
We receive the following errors when activating Gradles Configuration Cache with both ObjectBox 4.3.1 and 5.0.0:
[error] 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.
- field project of io.objectbox.gradle.ProjectEnv
- bean of type io.objectbox.gradle.ProjectEnv
- field env of io.objectbox.gradle.PrepareTask
- task :common:repository:objectboxPrepareBuild of type io.objectbox.gradle.PrepareTask
- task :common:storage:objectboxPrepareBuild of type io.objectbox.gradle.PrepareTask
Activity
greenrobot-team commentedon Feb 16, 2021
Thanks for sharing, I'll have a look (at some point)! Though I'd say this is an enhancement request, not a bug.
More details from duplicate #1020:
To Reproduce
Steps to reproduce the behaviour:
Try Configuration cache in a buildhttps://medium.com/androiddevelopers/configuration-caching-deep-dive-bcb304698070
Edit: this is internal issue
objectbox/objectbox-java#310.dekalo-stanislav commentedon Apr 20, 2022
HI, this item is pretty important for us as it is blocking our project to use Gradle configuration cache feature.
Is your io.objectbox plugin available on Github to check its sources?
dekalo-stanislav commentedon Apr 21, 2022
And there are already 2 requests for this feature #1020
vdmitrovich commentedon Oct 4, 2022
Hello!
@greenrobot Looks like you closed both of tickets as duplicate of each other ;-D
For us it is pretty important change and if needed we can help to contribute or tailor some deal around that. If needed we can continue communication in other channel.
greenrobot-team commentedon Oct 10, 2022
@vdmitrovich This issue is still open? Anyhow, I assume this means that the latest version of the ObjectBox Gradle plugin still is incompatible with the configuration cache (I haven't checked lately)?
vdmitrovich commentedon Oct 13, 2022
We are using 3.2.0 - will check with 3.3.1 soon and update you
AntonioShare commentedon Oct 18, 2023
I would like to know when this support will be added, we will also be happy to contribute to the community
poldz123 commentedon Jan 19, 2025
greenrobot-team commentedon Jan 20, 2025
Faltenreich commentedon Sep 26, 2025
Any news regarding this topic?
We receive the following errors when activating Gradles Configuration Cache with both ObjectBox 4.3.1 and 5.0.0:
35 remaining items
refactor: make renameTarakFile and git-hooks configuration-cache-ready
refactor: make renameTarakFile and git-hooks configuration-cache-ready
refactor: make renameTarakFile and git-hooks configuration-cache-ready
refactor: make renameTarakFile and git-hooks configuration-cache-ready
refactor: make renameTarakFile and git-hooks configuration-cache-ready
refactor: make renameTarakFile and git-hooks configuration-cache-ready
refactor: make renameTarakFile and git-hooks configuration-cache-ready
refactor: make renameTarakFile and git-hooks configuration-cache-ready
refactor: make renameTarakFile and git-hooks configuration-cache-ready
refactor: make renameTarakFile and git-hooks configuration-cache-ready
refactor: make renameTarakFile and git-hooks configuration-cache-ready
refactor: make renameTarakFile and git-hooks configuration-cache-ready
refactor: make renameTarakFile and git-hooks configuration-cache-ready
refactor: make renameTarakFile and git-hooks configuration-cache-ready
refactor: make renameTarakFile and git-hooks configuration-cache-ready