Skip to content

Commit bcb7469

Browse files
committed
Run checkstyle with JDK 21
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
1 parent 40d7dcf commit bcb7469

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

app/build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,13 @@ ksp {
134134
// Custom dependency configuration for ktlint
135135
val ktlint by configurations.creating
136136

137+
// https://checkstyle.org/#JRE_and_JDK
138+
tasks.withType<Checkstyle>().configureEach {
139+
javaLauncher = javaToolchains.launcherFor {
140+
languageVersion = JavaLanguageVersion.of(21)
141+
}
142+
}
143+
137144
checkstyle {
138145
configDirectory = rootProject.file("checkstyle")
139146
isIgnoreFailures = false

0 commit comments

Comments
 (0)