Skip to content

Commit df13278

Browse files
committed
Run checkstyle with JDK 21
Signed-off-by: Aayush Gupta <[email protected]>
1 parent cfc5399 commit df13278

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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)