Make maven and gradle share checkstyle configuration

This commit is contained in:
thomasperkins1123 2024-02-14 01:56:03 +00:00 committed by Dave Syer
parent da1c93d367
commit a2f1ad5503
4 changed files with 13 additions and 13 deletions

View file

@ -54,7 +54,13 @@ tasks.named('test') {
}
checkstyle {
configFile file("${project.rootDir}/src/checkstyle/nohttp-checkstyle.xml")
configDirectory = project.file('src/checkstyle')
configFile = file('src/checkstyle/nohttp-checkstyle.xml')
}
checkstyleNohttp {
configDirectory = project.file('src/checkstyle')
configFile = file('src/checkstyle/nohttp-checkstyle.xml')
}
tasks.named("formatMain").configure { dependsOn("checkstyleMain") }