can I pass lambdas as task inputs?
# community-support
b
can I pass lambdas as task inputs?
1
v
Afair, no
m
I think we may have fixed it some time ago, but I don't have a reference at hand
b
thank you, will take a look
l
The Kobweb Gradle plugin uses
Property<(String) -> String>
and other lambda properties as task inputs with no issues. The trick is to annotate them with
@Nested
instead of
@Input
, this makes the task rerun when the lambda changes as expected.
❤️ 1