From 3eae059ee0fd471baef37415e7588b8f2fb8daa9 Mon Sep 17 00:00:00 2001 From: gnembon Date: Tue, 16 Nov 2021 20:11:19 +0100 Subject: [PATCH] one more java --- build.gradle | 8 ++++---- src/main/resources/fabric.mod.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index 0a206e0a..19cccefc 100644 --- a/build.gradle +++ b/build.gradle @@ -3,8 +3,8 @@ plugins { id 'maven-publish' } -sourceCompatibility = JavaVersion.VERSION_16 -targetCompatibility = JavaVersion.VERSION_16 +sourceCompatibility = JavaVersion.VERSION_17 +targetCompatibility = JavaVersion.VERSION_17 archivesBaseName = project.archives_base_name version = project.minecraft_version+'-'+project.mod_version+'+v'+new Date().format('yyMMdd') @@ -44,8 +44,8 @@ tasks.withType(JavaCompile).configureEach { // If Javadoc is generated, this must be specified in that task too. it.options.encoding = "UTF-8" - // Minecraft 1.17 (21w19a) upwards uses Java 16. - it.options.release = 16 + // Minecraft 1.18 upwards uses Java 17. + it.options.release = 17 } java { diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index e5329f06..9155e3b1 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -34,6 +34,6 @@ "depends": { "minecraft": "1.17.x", "fabricloader": ">=0.11.3", - "java": ">=16" + "java": ">=17" } }