$ ./gradlew dependencies | grep checkstyle
Root project 'checkstyle-example'
checkstyle - The Checkstyle libraries to be used for this project.
\--- com.puppycrawl.tools:checkstyle:8.42
当觉得版本太低,如何解决:
可以在 build.gradle 后追加
1
2
3
checkstyle {
toolVersion = '10.4'
}
check 一下
1
2
3
4
spring-batch-remote-partitioning/spring-batch-remote-partitioning-kafka on master פֿ 3 2
🌈 ./gradlew dependencies | grep checkstyle
checkstyle - The Checkstyle libraries to be used for this project.
\--- com.puppycrawl.tools:checkstyle:10.4