apply plugin: 'checkstyle' checkstyle.toolVersion = '7.1' task checkstyle(type: Checkstyle) { description 'Checks if the code adheres to coding standards' group 'verification' configFile = new File(rootDir, "checkstyle.xml") source 'src' include '**/*.java' exclude '**/gen/**' classpath = files() ignoreFailures = false }