refactored taskName and generatedResources-path
set sourceSet.resources instead of output,
otherwise the IDE might not see the generated files