This message was deleted.
# plugin-development
s
This message was deleted.
t
Randomly found while looking at something else:
org.gradle.api.provider.HasConfigurableValue#finalizeValueOnRead
, which seems to work for Properties, but not any Provider, so still curious about any thoughts.
v
You mean as in lazily calculated, only one time calculated, and not changeable?
t
yep, based on the MemoizedProvider those seem to be the requirements 🙂
v
You can do it, yes. Let me search the pattern I use for that.
I hope that was my last version: https://github.com/gradle/gradle/issues/25550
A user could of course cast the provider to property, but further configuration is prevented, so it doesn't matter
t
yeah, that
.cached
ext fun looks good at first sight
👌 1
Looks like it's working as expected (assuming the tests cover this behavior): https://github.com/JetBrains/gradle-intellij-plugin/pull/1519 Thanks for this!
👌 1