Refactor plugin to create a task for each sourceSet