From b37e1f34cd57bb6fad7e46bc95bb569eadf4ce38 Mon Sep 17 00:00:00 2001 From: SHsuperCM Date: Fri, 18 Mar 2022 12:19:53 +0200 Subject: Added Modrinth publishing --- Changelog.md | 1 + build.gradle | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 Changelog.md diff --git a/Changelog.md b/Changelog.md new file mode 100644 index 0000000..b46c62a --- /dev/null +++ b/Changelog.md @@ -0,0 +1 @@ +Complete rewrite of the mod! \ No newline at end of file diff --git a/build.gradle b/build.gradle index b1ed0d5..1375453 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,9 @@ +import java.nio.file.Files + plugins { id 'fabric-loom' version '0.11-SNAPSHOT' apply false id 'io.shcm.shsupercm.fabric.fletchingtable' version '1.4' apply false + id "com.modrinth.minotaur" version "2.+" apply false } version = project.mod_version + "+" + project.minecraft_version @@ -67,6 +70,8 @@ allprojects { } } +apply plugin: "com.modrinth.minotaur" + loom { accessWidenerPath = file("src/main/resources/citresewn.accesswidener") } @@ -83,4 +88,14 @@ java { sourcesJar { from project("defaults:").sourceSets.main.java.srcDirs +} +modrinth { + token = TOKEN_MODRINTH + projectId = "otVJckYQ" + uploadFile = remapJar + changelog = Files.readString(projectDir.toPath().resolve("Changelog.md")) + versionNumber = version + versionName = "v" + version + additionalFiles = [ sourcesJar.outputs.getFiles().singleFile ] + gameVersions = ["1.18", "1.18.1", "1.18.2"] } \ No newline at end of file -- cgit