Fixes PMD issues since upgrade to gradle 2.