one more java
This commit is contained in:
1 parent
205a8d9271
commit
3eae059ee0
2 files changed
+5
-5
No files matched your search
+4
-4
@@ -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 {
|
||||
|
||||
@@ -34,6 +34,6 @@
|
||||
"depends": {
|
||||
"minecraft": "1.17.x",
|
||||
"fabricloader": ">=0.11.3",
|
||||
"java": ">=16"
|
||||
"java": ">=17"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user