Among the install- tasks I see the following
install-pom.xml - Installs pom.xml artifact with Maven
install-README - Installs README artifact with Maven
install-target - Installs target artifact with Maven
Clearly, those shouldn't be present.
Instead of doing a directory operation, I'd rather read the list of modules from the pom.xml and use them for the iteration.
While I would love to master a more direct integration between gradle and Maven, I think your patch definitely makes the situation better. Hence +1
While I'd love to see a better integration too I don't see an immediate solution without developing a plugin of some kind. This one provides a not-very-ugly fix for the bug. Will commit it in a bit a open a ticket to investigate a better gradle-maven integration
Committed and pushed as
a0035a3..40b6b2f HEAD -> master