gradle: Just replace clean task actions rather than whole task

Signed-off-by: BJ Hargrave <bj@bjhargrave.com>
Merge pull request #566 from bjhargrave/gradle-clean

gradle: Just replace clean task actions rather than whole task
gradle template: checkErrors: do not duplicate what bnd already does

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>