updated build to Gradle 9 and JDK 25

This commit is contained in:
2026-02-17 14:54:01 +08:00
parent b6c4cca2e7
commit 91cf489630
12 changed files with 35 additions and 33 deletions

View File

@@ -6,7 +6,7 @@ group = "net.woggioni.finalguard"
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
languageVersion = JavaLanguageVersion.of(25)
}
}
@@ -20,6 +20,19 @@ tasks.named(org.gradle.api.plugins.JavaPlugin.COMPILE_JAVA_TASK_NAME, JavaCompil
options.compilerArgs << '-parameters'
}
configurations {
testCompileClasspath {
attributes {
attribute(org.gradle.api.attributes.java.TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 25)
}
}
testRuntimeClasspath {
attributes {
attribute(org.gradle.api.attributes.java.TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 25)
}
}
}
test {
def testCompilationClassPath = sourceSets["main"].output.classesDirs.files +
sourceSets["main"].runtimeClasspath.files +