build: switch from minotaur to mod-publish-plugin for modrinth publishing

This commit is contained in:
Jason Penilla committed 2023-11-14 21:48:13 -07:00
1 parent 3c61a2d24b
commit b38e08daa0
9 files changed
+33 -24

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ dependencies {
implementation(libs.indraCommon)
implementation(libs.indraLicenser)
implementation(libs.shadow)
implementation(libs.minotaur)
implementation(libs.mod.publish.plugin)
implementation(libs.hangarPublishPlugin)
// https://github.com/gradle/gradle/issues/15383#issuecomment-779893192
@@ -1,4 +1,4 @@
import com.modrinth.minotaur.ModrinthExtension
import me.modmuss50.mpp.ModPublishExtension
plugins {
id("minimotd.base-conventions")
@@ -20,13 +20,15 @@ tasks {
}
if (name != "minimotd-bukkit-bungeecord") {
plugins.apply("com.modrinth.minotaur")
plugins.apply("me.modmuss50.mod-publish-plugin")
the<ModrinthExtension>().apply {
projectId.set("16vhQOQN")
versionType.set("release")
file.set(platformExtension.jarTask.flatMap { it.archiveFile })
changelog.set(releaseNotes)
token.set(providers.environmentVariable("MODRINTH_TOKEN"))
extensions.configure(ModPublishExtension::class) {
modrinth {
projectId.set("16vhQOQN")
type = STABLE
file.set(platformExtension.jarTask.flatMap { it.archiveFile })
changelog.set(releaseNotes)
accessToken.set(providers.environmentVariable("MODRINTH_TOKEN"))
}
}
}
+2 -2
View File
@@ -7,7 +7,7 @@ run-waterfall = { id = "xyz.jpenilla.run-waterfall", version.ref = "run-task" }
[versions]
run-task = "2.2.0"
minotaur = "2.7.5"
mod-publish-plugin = "0.4.5"
hangarPublishPlugin = "0.1.0"
indra = "3.1.3"
shadow = "8.1.1"
@@ -73,7 +73,7 @@ jupiterEngine = { group = "org.junit.jupiter", name = "junit-jupiter-engine", ve
indraCommon = { group = "net.kyori", name = "indra-common", version.ref = "indra" }
indraLicenser = { group = "net.kyori", name = "indra-licenser-spotless", version.ref = "indra" }
shadow = { group = "com.github.johnrengelman", name = "shadow", version.ref = "shadow" }
minotaur = { group = "com.modrinth.minotaur", name = "Minotaur", version.ref = "minotaur" }
mod-publish-plugin = { module = "me.modmuss50:mod-publish-plugin", version.ref = "mod-publish-plugin" }
hangarPublishPlugin = { group = "io.papermc", name = "hangar-publish-plugin", version.ref = "hangarPublishPlugin" }
[bundles]
+3 -3
View File
@@ -39,7 +39,7 @@ tasks {
runPaper.folia.registerTask()
modrinth {
loaders.set(listOf("paper", "folia"))
gameVersions.addAll(bukkitVersions)
publishMods.modrinth {
modLoaders.addAll("paper", "folia")
minecraftVersions.addAll(bukkitVersions)
}
+3 -3
View File
@@ -32,7 +32,7 @@ tasks {
}
}
modrinth {
loaders.add("waterfall") // not sure why this isn't detected automatically from run-waterfall...
gameVersions.addAll(minecraftVersion)
publishMods.modrinth {
modLoaders.add("waterfall")
minecraftVersions.addAll(minecraftVersion)
}
+5
View File
@@ -53,3 +53,8 @@ tasks {
}
}
}
publishMods.modrinth {
modLoaders.add("fabric")
minecraftVersions.addAll(minecraftVersion)
}
+3 -3
View File
@@ -30,7 +30,7 @@ tasks {
}
}
modrinth {
loaders.add("sponge")
gameVersions.add("1.12.2")
publishMods.modrinth {
modLoaders.add("sponge")
minecraftVersions.add("1.12.2")
}
+3 -2
View File
@@ -46,8 +46,9 @@ tasks {
}
}
modrinth {
gameVersions.addAll(
publishMods.modrinth {
modLoaders.add("sponge")
minecraftVersions.addAll(
"1.16.5",
"1.17.1",
"1.18.2",
+3 -2
View File
@@ -31,6 +31,7 @@ tasks {
}
}
modrinth {
gameVersions.addAll(minecraftVersion)
publishMods.modrinth {
modLoaders.add("velocity")
minecraftVersions.addAll(minecraftVersion)
}