From c6de6b2a38ebdb11613528a72f5a451233f93eef Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 25 Oct 2023 11:46:01 +0100 Subject: [PATCH] Update loom and gradle --- build.gradle | 10 ++++++++-- gradle/wrapper/gradle-wrapper.properties | 2 +- src/main/resources/fabric.mod.json | 11 +++++------ 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/build.gradle b/build.gradle index 50ed41b1..2e5c40e3 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ buildscript { } plugins { id 'java-library' - id 'fabric-loom' version '1.1-SNAPSHOT' + id 'fabric-loom' version '1.3-SNAPSHOT' id 'maven-publish' id 'com.modrinth.minotaur' version '2.+' id 'org.ajoberstar.reckon' version '0.13.0' @@ -65,7 +65,12 @@ processResources { inputs.property "version", project.version.toString() filesMatching("fabric.mod.json") { - expand "version": project.version.toString() + expand "version": project.version.toString(), + "minecraftVersion": project.minecraft_version_range, + "loaderVersion": ">=${project.loader_version}", + "fabricVersion": ">=${project.fabric_version}", + "kirinVersion": ">=${kirin_version}", + "minelpVersion": ">=${project.minelp_version}" } from 'LICENSE' @@ -89,6 +94,7 @@ modrinth { versionNumber = version.toString() versionName = archivesBaseName + '-' + version changelog = "[Changelog](https://github.com/Sollace/Presence-Footsteps/releases/tag/${version.toString()})" + loaders = ['fabric', 'quilt'] uploadFile = remapJar outlet.mcVersions().each{ver -> gameVersions.add ver diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index e750102e..59bc51a2 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 45c6e018..d9d921bc 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -26,15 +26,14 @@ "presencefootsteps.mixin.json" ], "depends": { - "fabricloader": ">=0.12.0", + "minecraft": "${minecraftVersion}", + "fabricloader": "${loaderVersion}", "java": ">=17", - "fabric-api-base": ">=0.1.0", - "fabric-lifecycle-events-v1": ">=0.1.0", - "fabric-resource-loader-v0": ">=0.1.0", - "kirin": "*" + "fabric-api": "${fabricVersion}", + "kirin": "${kirinVersion}" }, "suggests": { - "minelp": "*" + "minelp": "${minelpVersion}" }, "custom": { "modmenu": {