Skip to content

Commit 8972df0

Browse files
committed
Update checkstyle to latest stable release
Also force it to run with JDK 21 Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
1 parent 1cd5e64 commit 8972df0

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

extractor/build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ tasks.test {
4040
dependsOn(tasks.checkstyleMain) // run checkstyle when testing
4141
}
4242

43+
// https://checkstyle.org/#JRE_and_JDK
44+
tasks.withType<Checkstyle>().configureEach {
45+
javaLauncher = javaToolchains.launcherFor {
46+
languageVersion = JavaLanguageVersion.of(21)
47+
}
48+
}
49+
4350
checkstyle {
4451
configDirectory = rootProject.file("checkstyle")
4552
isIgnoreFailures = false

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55

66
[versions]
7-
checkstyle = "10.26.1"
7+
checkstyle = "12.3.0"
88
gson = "2.13.2"
99
jsr305 = "3.0.2"
1010
junit = "5.14.1"

0 commit comments

Comments
 (0)