I want to effectively invoke a task multiple times with different values each time. How can I do this? Or what is a better way? Can a task be passed parameters? Or, configured and run multiple times, or something else? For example:
task abc << {
println “$x $y” }
Have different values for x and y when the task is executed.
The real thing I’m trying to do at the moment is create a JavaExec task that can be reused with different inputs and outputs each time.