It would be nice if you could pass a Task to SourceSetOutput.dir() and it would automatically link the Task’s output dir(s), etc.
Alternately, a fromTask() method would perhaps be more readable.
I don’t like the repetition of declaring a variable for my output directory, and using it in the SourceSetOutput and my task. It also gets in the way when the task’s default output directory works.