Skip to content

Commit 61e52d1

Browse files
committed
build: add modrinth minotaur
1 parent c50ea88 commit 61e52d1

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

build.gradle.kts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ plugins {
55
id("io.github.goooler.shadow") version "8.1.7"
66
id("com.wolfyscript.devtools.docker.run") version "a2.0.0.1"
77
id("com.wolfyscript.devtools.docker.minecraft_servers") version "a2.0.0.1"
8+
id("com.modrinth.minotaur") version "2.+"
89
}
910

1011
description = "wolfyutils-spigot"
@@ -152,7 +153,6 @@ tasks.named("test") {
152153
dependsOn.add(tasks.named("shadowJar"))
153154
}
154155

155-
156156
artifactory {
157157

158158
publish {
@@ -170,4 +170,15 @@ artifactory {
170170
}
171171
}
172172

173-
}
173+
}
174+
175+
modrinth {
176+
token.set(System.getenv("MODRINTH_TOKEN")) // Remember to have the MODRINTH_TOKEN environment variable set or else this will fail - just make sure it stays private!
177+
projectId.set("wolfyutils") // This can be the project ID or the slug. Either will work!
178+
versionNumber.set(project.version.toString()) // You don't need to set this manually. Will fail if Modrinth has this version already
179+
versionType.set("release") // TODO: Automatically determine this from the version
180+
uploadFile.set(tasks.shadowJar) // Use the shadowed jar !!
181+
changelog.set(System.getenv("CHANGELOG"))
182+
gameVersions.addAll("1.21.4") // Must be an array, even with only one version
183+
loaders.addAll("bukkit", "spigot", "paper", "purpur") // Must also be an array - no need to specify this if you're using Loom or ForgeGradle
184+
}

0 commit comments

Comments
 (0)