Updated java version in build.gradle

This commit is contained in:
coolGi2007
2022-01-02 04:54:16 +00:00
parent 0c8fdaab29
commit 4870d456c9
2 changed files with 10 additions and 3 deletions
+9 -2
View File
@@ -1,6 +1,6 @@
plugins {
id "architectury-plugin" version "3.4-SNAPSHOT"
id "dev.architectury.loom" version "0.10.0.195" apply false
id "dev.architectury.loom" version "0.10.0-SNAPSHOT" apply false
}
architectury {
@@ -56,7 +56,14 @@ allprojects {
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
options.release = 8
// The Minecraft launcher currently installs Java 8 for users, so your mod probably wants to target Java 8 too
// JDK 9 introduced a new way of specifying this that will make sure no newer classes or methods are used.
// We'll use that if it's available, but otherwise we'll use the older option.
def targetVersion = 8
if (JavaVersion.current().isJava9Compatible()) {
options.release = targetVersion
}
}
java {
+1 -1
Submodule core updated: 975c24c8a9...219ad9c45a