fun abiValidation(action: Action<AbiValidationExtension>)
?
I get that working with extensions is best for top level blocks because of Groovy interop but is it also needed for nested blocks?
Reason I'm asking is it hurts discoverability when working in convention plugins where generated accessors are not always available.
v
Vampire
08/08/2025, 1:44 PM
Probably because it is not always present.
That extension is only created if ABI validation is actually enabled (i.e. not disabled using
kotlin.abi.validation.disabled
)
m
mbonnin
08/08/2025, 1:47 PM
Follow up question is why would I disable it
(there is also
kotlin.abiValidation.enabled
)
🤷♂️ 1
mbonnin
08/08/2025, 1:48 PM
Might be an optimisation to simplify the Gradle model for projects where it's not enabled