2
0

checkstyle.gradle 317 B

123456789101112
  1. apply plugin: 'checkstyle'
  2. checkstyle {
  3. configFile = rootProject.file('etc/checkstyle/checkstyle.xml')
  4. configProperties.configDir = configFile.parentFile
  5. toolVersion = '6.16.1'
  6. }
  7. task checkstyle {
  8. dependsOn project.tasks.findAll { task -> task.name.matches('checkstyle\\w+') }
  9. }
  10. check.dependsOn tasks.checkstyle