chore: unify checkstyle, fix violations, cleanup bin/
This commit is contained in:
parent
9c5e5bccae
commit
da9271b283
17 changed files with 363 additions and 67 deletions
|
|
@ -1,6 +1,7 @@
|
|||
plugins {
|
||||
java
|
||||
id("com.gradleup.shadow") version "9.3.1" apply false
|
||||
checkstyle
|
||||
}
|
||||
|
||||
allprojects {
|
||||
|
|
@ -18,8 +19,24 @@ allprojects {
|
|||
|
||||
subprojects {
|
||||
apply(plugin = "java")
|
||||
apply(plugin = "checkstyle")
|
||||
|
||||
java {
|
||||
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
|
||||
}
|
||||
|
||||
checkstyle {
|
||||
toolVersion = "10.21.4"
|
||||
configFile = rootProject.file("config/checkstyle/checkstyle.xml")
|
||||
isIgnoreFailures = false
|
||||
maxErrors = 0
|
||||
maxWarnings = 0
|
||||
}
|
||||
|
||||
tasks.withType<Checkstyle>().configureEach {
|
||||
reports {
|
||||
xml.required.set(true)
|
||||
html.required.set(true)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue