PMD fix compatibility with Gradle 2.0