diff --git a/build.gradle.kts b/build.gradle.kts index 765ff7b4..33a01d27 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -9,7 +9,7 @@ buildscript { } } -val versionObj = Version("1", "1", "3", +val versionObj = Version("1", "1", "4", preRelease = (System.getenv("IPNEXT_RELEASE") == null)) diff --git a/platforms/fabric-1.14/build.gradle.kts b/platforms/fabric-1.14/build.gradle.kts index ee404be2..8c88b8b1 100644 --- a/platforms/fabric-1.14/build.gradle.kts +++ b/platforms/fabric-1.14/build.gradle.kts @@ -229,6 +229,10 @@ configure { displayName = "Inventory Profiles Next-fabric-$minecraft_version-$mod_version" }) + relations(closureOf { + requiredDependency("fabric-api") + optionalDependency("modmenu") + }) afterEvaluate { uploadTask.dependsOn("build") } diff --git a/platforms/fabric-1.15/build.gradle.kts b/platforms/fabric-1.15/build.gradle.kts index 1edebf98..343d6152 100644 --- a/platforms/fabric-1.15/build.gradle.kts +++ b/platforms/fabric-1.15/build.gradle.kts @@ -229,6 +229,11 @@ configure { displayName = "Inventory Profiles Next-fabric-$minecraft_version-$mod_version" }) + relations(closureOf { + requiredDependency("fabric-api") + optionalDependency("modmenu") + }) + afterEvaluate { uploadTask.dependsOn("build") } diff --git a/platforms/fabric-1.16/build.gradle.kts b/platforms/fabric-1.16/build.gradle.kts index 400c2ccd..879d2e3d 100644 --- a/platforms/fabric-1.16/build.gradle.kts +++ b/platforms/fabric-1.16/build.gradle.kts @@ -226,6 +226,11 @@ configure { displayName = "Inventory Profiles Next-fabric-$minecraft_version-$mod_version" }) + relations(closureOf { + requiredDependency("fabric-api") + optionalDependency("modmenu") + }) + afterEvaluate { uploadTask.dependsOn("build") } diff --git a/platforms/fabric-1.17/build.gradle.kts b/platforms/fabric-1.17/build.gradle.kts index d132a347..dc7eacc0 100644 --- a/platforms/fabric-1.17/build.gradle.kts +++ b/platforms/fabric-1.17/build.gradle.kts @@ -1,4 +1,5 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar +import com.matthewprenger.cursegradle.CurseRelation import com.modrinth.minotaur.TaskModrinthUpload import net.fabricmc.loom.task.RemapJarTask import org.anti_ad.mc.configureCommon @@ -222,7 +223,10 @@ configure { mainArtifact(remappedJarFile, closureOf { displayName = "Inventory Profiles Next-fabric-$minecraft_version-$mod_version" }) - + relations(closureOf { + requiredDependency("fabric-api") + optionalDependency("modmenu") + }) afterEvaluate { uploadTask.dependsOn("build") }