Skip to content

Commit

Permalink
build: switch from minotaur to mod-publish-plugin for modrinth publis…
Browse files Browse the repository at this point in the history
…hing
  • Loading branch information
jpenilla committed Nov 15, 2023
1 parent 944a53f commit d5e00e7
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 11 deletions.
2 changes: 1 addition & 1 deletion build-logic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ dependencies {
implementation(libs.build.indraLicenser)
implementation(libs.build.shadow)
implementation(libs.build.hangarPublishPlugin)
implementation(libs.build.minotaur)
implementation(libs.build.mod.publish.plugin)
}
10 changes: 6 additions & 4 deletions build-logic/src/main/kotlin/tabtps.platform.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import me.modmuss50.mpp.ReleaseType

plugins {
id("tabtps.base")
id("com.github.johnrengelman.shadow")
id("com.modrinth.minotaur")
id("me.modmuss50.mod-publish-plugin")
}

decorateVersion()
Expand All @@ -18,10 +20,10 @@ tasks {
}
}

modrinth {
publishMods.modrinth {
projectId.set("cUhi3iB2")
versionType.set("release")
type.set(ReleaseType.STABLE)
file.set(platformExt.productionJar)
changelog.set(releaseNotes)
token.set(providers.environmentVariable("MODRINTH_TOKEN"))
accessToken.set(providers.environmentVariable("MODRINTH_TOKEN"))
}
5 changes: 5 additions & 0 deletions fabric/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,8 @@ tasks {
tabTPSPlatform {
productionJar.set(tasks.remapJar.flatMap { it.archiveFile })
}

publishMods.modrinth {
modLoaders.add("fabric")
minecraftVersions.add(minecraftVersion)
}
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ mixin = "0.8.5"
# buildSrc
indra = "3.1.3"
shadow = "8.1.1"
minotaur = "2.7.5"
mod-publish-plugin = "0.4.5"
hangarPublishPlugin = "0.1.0"

[libraries]
Expand Down Expand Up @@ -82,7 +82,7 @@ minecraft = { group = "com.mojang", name = "minecraft", version.ref = "minecraft
build-indraCommon = { group = "net.kyori", name = "indra-common", version.ref = "indra" }
build-indraLicenser = { group = "net.kyori", name = "indra-licenser-spotless", version.ref = "indra" }
build-shadow = { group = "com.github.johnrengelman", name = "shadow", version.ref = "shadow" }
build-minotaur = { group = "com.modrinth.minotaur", name = "Minotaur", version.ref = "minotaur" }
build-mod-publish-plugin = { module = "me.modmuss50:mod-publish-plugin", version.ref = "mod-publish-plugin" }
build-hangarPublishPlugin = { group = "io.papermc", name = "hangar-publish-plugin", version.ref = "hangarPublishPlugin" }

[bundles]
Expand Down
5 changes: 3 additions & 2 deletions spigot/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ fun TaskContainerScope.createVersionedRun(
})
}

modrinth {
gameVersions.addAll(bukkitVersions)
publishMods.modrinth {
modLoaders.add("paper")
minecraftVersions.addAll(bukkitVersions)
}
5 changes: 3 additions & 2 deletions sponge/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ tabTPSPlatform {
productionJar.set(tasks.shadowJar.flatMap { it.archiveFile })
}

modrinth {
gameVersions.addAll(
publishMods.modrinth {
modLoaders.add("sponge")
minecraftVersions.addAll(
"1.16.5",
"1.17.1",
"1.18.2",
Expand Down

0 comments on commit d5e00e7

Please sign in to comment.