using checkstyle in gradle
The checkstyle plugin brings code quality checks into the gradle build. This way, if team members are using disparate IDEs or have different settings, consistent coding standards are enforced in the build. Here’s how to add checkstyle to your Java build in two steps:1) In build.gradle, add this: apply plugin: ‘checkstyle’ checkstyle …