plugin-tests: update Java toolchain and release version to 21

This commit is contained in:
Oliver
2025-03-29 21:07:53 +01:00
parent eeb686957f
commit 96a088c03d

View File

@@ -9,7 +9,7 @@ version = findProperty("plugintestsVersion") as String
description = "Library for defining and running tests in a Minecraft server environment"
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}
repositories {
@@ -67,7 +67,7 @@ tasks {
// Set the release flag. This configures what version bytecode the compiler will emit, as well as what JDK APIs are usable.
// See https://openjdk.java.net/jeps/247 for more information.
options.release.set(17)
options.release.set(21)
}
java {