I’d prefer to write my plugins in java instead of groovy and I find that Action is far more java friendly than Closure
The CopySpec api allows both Action and Closure. Eg:
CopySpec from(Object sourcePath, Closure c)
CopySpec from(Object sourcePath, Action<? super CopySpec> configureAction)
Can I request that Action methods are also offered on the DependencyHandler Interface for add() and create()?
I noticed there’s a ClosureBackedAction but it seems there’s no ActionBackedClosure. Note: I’m aware of groovy’s MethodClosure which I could use but it feels dirty!