Run checkstyle with JDK 21
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
parent
40d7dcf3d3
commit
bcb7469d30
1 changed files with 7 additions and 0 deletions
|
|
@ -134,6 +134,13 @@ ksp {
|
||||||
// Custom dependency configuration for ktlint
|
// Custom dependency configuration for ktlint
|
||||||
val ktlint by configurations.creating
|
val ktlint by configurations.creating
|
||||||
|
|
||||||
|
// https://checkstyle.org/#JRE_and_JDK
|
||||||
|
tasks.withType<Checkstyle>().configureEach {
|
||||||
|
javaLauncher = javaToolchains.launcherFor {
|
||||||
|
languageVersion = JavaLanguageVersion.of(21)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
checkstyle {
|
checkstyle {
|
||||||
configDirectory = rootProject.file("checkstyle")
|
configDirectory = rootProject.file("checkstyle")
|
||||||
isIgnoreFailures = false
|
isIgnoreFailures = false
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue