From 059eb8c1d9582b65f987573344c9156235c37b09 Mon Sep 17 00:00:00 2001 From: liquidev Date: Tue, 31 Dec 2024 23:04:43 +0100 Subject: [PATCH] add modrinth publishing --- build.gradle | 19 ++++++++++++------- gradle.properties | 2 +- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/build.gradle b/build.gradle index 3b68886..02f3b6a 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,7 @@ plugins { - id 'fabric-loom' version '1.9-SNAPSHOT' + id 'fabric-loom' version '1.8-SNAPSHOT' id 'maven-publish' + id "com.modrinth.minotaur" version "2.+" } version = project.mod_version @@ -74,15 +75,12 @@ java { withSourcesJar() } -tasks { - jar { - from("LICENSE") { - rename { "${it}_${project.archivesBaseName}" } - } +jar { + from("LICENSE") { + rename { "${it}_${project.archivesBaseName}" } } } - // configure the maven publication publishing { publications { @@ -100,3 +98,10 @@ publishing { // retrieving dependencies. } } + +modrinth { + projectId = "no-auto-iconify" + uploadFile = remapJar + gameVersions = ["1.21.4"] + loaders = ["fabric"] +} diff --git a/gradle.properties b/gradle.properties index 81430cb..652f50e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,7 +6,7 @@ minecraft_version=1.21.4 yarn_mappings=1.21.4+build.4 loader_version=0.16.9 # Mod Properties -mod_version=1.0-SNAPSHOT +mod_version=1.0.0 maven_group=net.liquidev archives_base_name=NoAutoIconify # Dependencies