fix(lom): Java 21
This commit is contained in:
parent
f3659b41c2
commit
d0b6a2d8a1
|
@ -225,7 +225,7 @@ afterEvaluate {
|
|||
// from fabric-example-mod, enforces modern java
|
||||
tasks.withType<JavaCompile>().configureEach {
|
||||
options.encoding = "UTF-8"
|
||||
options.release.set(17)
|
||||
options.release.set(if (SemanticVersion.parse(args.minecraftVersion.get()) > SemanticVersion(1, 20, 4, VersionType.RELEASE, null)) 21 else 17)
|
||||
}
|
||||
|
||||
// otherwise we can't easily overwrite the artifacts to publish while keeping dependency metadata
|
||||
|
|
Loading…
Reference in New Issue