This message was deleted.
# plugin-development
s
This message was deleted.
v
I think it should behave as you exepct. It should only be evaluated and thus the file read when needed. But it is read each time the provider is evaluated. If you don't see where the
collection
is queried, so that the provider gets evaluated, mabye set a breakpoint within your
map
and try to find out.
k
I did do a check, and I'm just chalking it up to using an older version of Gradle where
addAllLater()
seems to eagerly evaluate providers for whatever reason.
v
k
It is true that replacing
RegularFileProperty
with
ConfigurableFileCollection
(and working on its elements) seems to work fine.