1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2026-03-10 17:59:44 +00:00

Run checkstyle with JDK 21

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2026-01-22 17:38:41 +08:00
parent 40d7dcf3d3
commit bcb7469d30

View File

@@ -134,6 +134,13 @@ ksp {
// Custom dependency configuration for ktlint
val ktlint by configurations.creating
// https://checkstyle.org/#JRE_and_JDK
tasks.withType<Checkstyle>().configureEach {
javaLauncher = javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(21)
}
}
checkstyle {
configDirectory = rootProject.file("checkstyle")
isIgnoreFailures = false