Ported checkstyle into the Gradle build.