Jonathing
04/16/2025, 3:46 PM@DelegatesTo
and/or @ClosureParams
. Is there a good reason for this or is this just a result of how long Gradle has been around? And would you be open to contributions that add these annotations? I'd appreciate the additional IDE support.melix
04/18/2025, 9:07 AMClosure
taking method has been added in Gradle for years: they take Action
and the closure version is generated
⢠the Closure
taking methods have been slowly removed, the ones which are left are there because they are incompatible with the Action
change or cause API breaking change
⢠if I remember the remaining Closure
methods accept different kind of arguments which make it difficult if ever possible to use @DelegatesTo
because the delegate type can be whateverJonathing
04/18/2025, 3:26 PMClosure
accepting methods is a good alternative since Groovy knows how to deal with Action
. What examples of methods that accept closures are incompatible?melix
04/18/2025, 3:55 PMJonathing
04/18/2025, 3:55 PM