Port to 1.18

This commit is contained in:
Surya 2021-12-17 16:41:34 +05:30
parent 567408aef9
commit 0cef29b46a
5 changed files with 17 additions and 14 deletions

View File

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

View File

@ -1,10 +1,10 @@
plugins { plugins {
id 'fabric-loom' version '0.8-SNAPSHOT' id 'fabric-loom' version '0.10-SNAPSHOT'
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.mod_version version = project.mod_version
@ -55,6 +55,9 @@ tasks.withType(JavaCompile).configureEach {
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html // see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
// 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.18 (1.18-pre2) upwards uses Java 17.
it.options.release = 17
} }
java { java {

View File

@ -3,21 +3,21 @@ org.gradle.jvmargs=-Xmx1G
# Fabric Properties # Fabric Properties
# check these on https://fabricmc.net/use # check these on https://fabricmc.net/use
minecraft_version=1.17.1 minecraft_version=1.18.1
yarn_mappings=1.17.1+build.63 yarn_mappings=1.18.1+build.1
loader_version=0.11.7 loader_version=0.12.12
# Mod Properties # Mod Properties
mod_version = 1.17.1-1.2.1 mod_version = 1.18.1-1.3.0
maven_group = me.neophyte.mods.savecoords maven_group = me.neophyte.mods.savecoords
archives_base_name = save-coordinates archives_base_name = save-coordinates
# Dependencies # Dependencies
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api # currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api
fabric_version=0.41.0+1.17 fabric_version=0.44.0+1.18
# https://github.com/CottonMC/LibGui/wiki/Setup # https://github.com/CottonMC/LibGui/wiki/Setup
libgui_version=4.2.1+1.17.1 libgui_version=5.1.0+1.18
#https://maven.terraformersmc.com/releases/com/terraformersmc/modmenu/ #https://maven.terraformersmc.com/releases/com/terraformersmc/modmenu/
modmenu_version=2.0.14 modmenu_version=3.0.0

View File

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.1-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

View File

@ -27,8 +27,8 @@
"depends": { "depends": {
"fabricloader": ">=0.11.3", "fabricloader": ">=0.11.3",
"fabric": "*", "fabric": "*",
"minecraft": "1.17.1", "minecraft": "1.18.x",
"java": ">=16" "java": ">=17"
}, },
"suggests": { "suggests": {
"another-mod": "modmenu" "another-mod": "modmenu"