one more java

This commit is contained in:
gnembon committed 2021-11-16 20:13:08 +01:00
1 parent 205a8d9271
commit 3eae059ee0
2 files changed
+5 -5

No files matched your search

+4 -4
View File
@@ -3,8 +3,8 @@ plugins {
id 'maven-publish' id 'maven-publish'
} }
sourceCompatibility = JavaVersion.VERSION_16 sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_16 targetCompatibility = JavaVersion.VERSION_17
archivesBaseName = project.archives_base_name archivesBaseName = project.archives_base_name
version = project.minecraft_version+'-'+project.mod_version+'+v'+new Date().format('yyMMdd') 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. // If Javadoc is generated, this must be specified in that task too.
it.options.encoding = "UTF-8" it.options.encoding = "UTF-8"
// Minecraft 1.17 (21w19a) upwards uses Java 16. // Minecraft 1.18 upwards uses Java 17.
it.options.release = 16 it.options.release = 17
} }
java { java {
+1 -1
View File
@@ -34,6 +34,6 @@
"depends": { "depends": {
"minecraft": "1.17.x", "minecraft": "1.17.x",
"fabricloader": ">=0.11.3", "fabricloader": ">=0.11.3",
"java": ">=16" "java": ">=17"
} }
} }