This message was deleted.
# develocity
s
This message was deleted.
p
(accidentally posted this to the wrong thread) @.no using a class that implements
Action<BuildScanExtension>
worked. 🙌 The way a
settings.gradle.kts
file is compiled is pretty surprising to me. I thought the script body was roughly equivalent to the body of a method with a
Settings
receiver, but that's clearly wrong. The
_provider
"local" - which was supposed to prevent the lambda capturing the
Settings
object - actually gets compiled as a property on the script class (which means the script object - that also can't be serialized - is captured by the lambda, defeating the point).