This commit is contained in:
ModProg 2021-12-02 19:52:12 +01:00
parent 5582cf2d9e
commit e3a9a28c62
4 changed files with 7 additions and 7 deletions

View File

@ -12,7 +12,7 @@ jobs:
matrix:
# Use these Java versions
java: [
16 # Minimum supported by Minecraft
17 # Minimum supported by Minecraft
]
# and run on both Linux and Windows
os: [ubuntu-20.04, windows-latest]

View File

@ -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.mod_version
@ -52,8 +52,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 (pre-release 2) upwards uses Java 17.
it.options.release = 17
}
java {

View File

@ -29,6 +29,6 @@
"depends": {
"fabricloader": ">=0.11.3",
"minecraft": "1.18.x",
"java": ">=16"
"java": ">=17"
}
}

View File

@ -2,7 +2,7 @@
"required": true,
"minVersion": "0.8",
"package": "nl.andrewlalis.speed_carts.mixin",
"compatibilityLevel": "JAVA_16",
"compatibilityLevel": "JAVA_17",
"mixins": [
"AbstractMinecartMixin"
],