a function declared like that is in project scope, which means it can't be used with configuration caching. I'm not sure if it's possible to avoid that in the Groovy DSL. try the Kotlin DSL or a binary plugin instead.
j
Jan Rabe
07/22/2022, 5:46 AM
wait, so there is no way to declare a function in groovy when using configuration caching? o.O
Jan Rabe
07/22/2022, 5:48 AM
exposing variables seems to be working when using the ext {} block but I can’t seem to get it work with methods
e
ephemient
07/22/2022, 7:21 AM
defining a class - or a proper task subclass - may work