[build] Upgrade to Java 21 (#7547)

Signed-off-by: Jade Turner <spacey-sooty@proton.me>
Co-authored-by: sciencewhiz <sciencewhiz@users.noreply.github.com>
This commit is contained in:
Jade
2025-07-26 06:45:40 +08:00
committed by GitHub
parent c78bd942bb
commit e93c8cdb29
20 changed files with 57 additions and 49 deletions

View File

@@ -103,7 +103,7 @@ configurations {
tasks.withType(JavaCompile).configureEach {
options.compilerArgs = [
'--release',
'17',
'21',
'-encoding',
'UTF8',
"-Werror",

View File

@@ -5,7 +5,7 @@ if (project.hasProperty('skipJavaFormat')) {
apply plugin: 'checkstyle'
checkstyle {
toolVersion = "10.12.2"
toolVersion = "10.26.1"
configDirectory = file("${project.rootDir}/styleguide")
config = resources.text.fromFile(new File(configDirectory.get().getAsFile(), "checkstyle.xml"))
}