This message was deleted.
# configuration-cache
s
This message was deleted.
c
your userHomeProvider is capturing something from the Project instance and needs to be adapted to avoid that. Calling
get()
early is an anti-pattern, as the goal is to let the framework (Gradle) call that when (and if) needed.
j
The
userHomeProvider
is Gradle’s
Copy code
val userHomeProvider = project.providers.systemProperty("user.home")
Calling
get()
– that happens already within the
ideVersions
provider – so late enough. But I’d like to zip those providers together instead, but I can’t. 🤷
c
hmmm. the built-in providers are clean, shouldn’t cause a problem. It’s generally where there is a closure/lambda that captures the project. Are we sure it’s that one that is causing the issue?