Console output for PMD

This is done after this idea on forums:
http://forums.gradle.org/gradle/topics/pmd_plugin_lacks_text_output

I'm new to Groovy so if there is something I can improve on this, please let me know.