Fixes PMD issues since upgrade to gradle 2.
Merge pull request #274 from shartte/2.0

Fixes PMD issues since upgrade to gradle 2.