aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorSHsuperCM <shsupercm@gmail.com>2022-03-18 12:19:53 +0200
committerSHsuperCM <shsupercm@gmail.com>2022-03-18 12:19:53 +0200
commitb37e1f34cd57bb6fad7e46bc95bb569eadf4ce38 (patch)
tree4aec57ddc1a2bee7fbbefc7ecadffbf6b8881485 /build.gradle
parentf3e93e36ae17eee238690416437758426654e6e6 (diff)
downloadCITResewn-b37e1f34cd57bb6fad7e46bc95bb569eadf4ce38.tar.gz
CITResewn-b37e1f34cd57bb6fad7e46bc95bb569eadf4ce38.tar.bz2
CITResewn-b37e1f34cd57bb6fad7e46bc95bb569eadf4ce38.zip
Added Modrinth publishing
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle15
1 files changed, 15 insertions, 0 deletions
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