mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 14:38:48 +00:00
Switch from minotaur to mod-publish-plugin for modrinth publishing (#354)
This commit is contained in:
1 parent
49d7796a37
commit
ae4e9eb866
7 files changed
+30
-21
No files matched your search
@@ -73,7 +73,7 @@ jobs:
|
||||
build/libs/carbonchat-fabric-*.jar
|
||||
- name: Publish (Pre-)Release to Modrinth
|
||||
if: "${{ env.STATUS == 'release' && github.event_name == 'release' }}"
|
||||
run: ./gradlew :carbonchat-paper:modrinth :carbonchat-velocity:modrinth :carbonchat-fabric:modrinth
|
||||
run: ./gradlew :carbonchat-paper:publishModrinth :carbonchat-velocity:publishModrinth :carbonchat-fabric:publishModrinth
|
||||
env:
|
||||
MODRINTH_TOKEN: "${{ secrets.MODRINTH_TOKEN }}"
|
||||
RELEASE_NOTES: "${{ github.event.release.body }}"
|
||||
|
||||
@@ -13,7 +13,7 @@ dependencies {
|
||||
implementation(libs.shadow)
|
||||
implementation(libs.indraCommon)
|
||||
implementation(libs.indraLicenseHeader)
|
||||
implementation(libs.minotaur)
|
||||
implementation(libs.mod.publish.plugin)
|
||||
implementation(libs.configurateYaml)
|
||||
implementation(libs.gremlin.gradle)
|
||||
implementation(libs.run.task)
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import me.modmuss50.mpp.ReleaseType
|
||||
|
||||
plugins {
|
||||
id("carbon.base-conventions")
|
||||
id("com.modrinth.minotaur")
|
||||
id("me.modmuss50.mod-publish-plugin")
|
||||
id("xyz.jpenilla.gremlin-gradle")
|
||||
}
|
||||
|
||||
@@ -62,15 +64,20 @@ tasks {
|
||||
|
||||
val projectVersion = project.version as String
|
||||
|
||||
modrinth {
|
||||
projectId.set("QzooIsZI")
|
||||
versionType.set(if (projectVersion.contains("-beta.")) "beta" else "release")
|
||||
file.set(platformExtension.jarTask.flatMap { it.archiveFile })
|
||||
changelog.set(releaseNotes)
|
||||
token.set(providers.environmentVariable("MODRINTH_TOKEN"))
|
||||
required.project("luckperms")
|
||||
optional.project("miniplaceholders")
|
||||
gameVersions.addAll("1.19.4", "1.20.2")
|
||||
publishMods.modrinth {
|
||||
projectId = "QzooIsZI"
|
||||
type = if (projectVersion.contains("-beta.")) ReleaseType.BETA else ReleaseType.STABLE
|
||||
file = platformExtension.jarTask.flatMap { it.archiveFile }
|
||||
changelog = releaseNotes
|
||||
accessToken = providers.environmentVariable("MODRINTH_TOKEN")
|
||||
requires(
|
||||
"luckperms",
|
||||
"miniplaceholders",
|
||||
)
|
||||
minecraftVersions.addAll(
|
||||
"1.19.4",
|
||||
"1.20.2",
|
||||
)
|
||||
}
|
||||
|
||||
tasks.writeDependencies {
|
||||
|
||||
@@ -91,7 +91,7 @@ tasks {
|
||||
}
|
||||
}
|
||||
|
||||
modrinth {
|
||||
gameVersions.set(listOf(libs.versions.minecraft.get()))
|
||||
loaders.addAll("fabric")
|
||||
publishMods.modrinth {
|
||||
minecraftVersions.set(listOf(libs.versions.minecraft.get()))
|
||||
modLoaders.addAll("fabric")
|
||||
}
|
||||
@@ -7,7 +7,7 @@ indra-publishing-sonatype = { id = "net.kyori.indra.publishing.sonatype", versio
|
||||
indra = "3.1.3"
|
||||
shadow = "8.1.1"
|
||||
pluginYml = "0.5.3"
|
||||
minotaur = "2.7.5"
|
||||
mod-publish-plugin = "0.4.5"
|
||||
gremlin = "0.0.3"
|
||||
runTask = "2.2.0"
|
||||
|
||||
@@ -63,7 +63,7 @@ indraCommon = { group = "net.kyori", name = "indra-common", version.ref = "indra
|
||||
indraLicenseHeader = { group = "net.kyori", name = "indra-licenser-spotless", version.ref = "indra" }
|
||||
shadow = { group = "com.github.johnrengelman", name = "shadow", version.ref = "shadow" }
|
||||
pluginYml = { group = "net.minecrell", name = "plugin-yml", version.ref = "pluginYml" }
|
||||
minotaur = { group = "com.modrinth.minotaur", name = "Minotaur", version.ref = "minotaur" }
|
||||
mod-publish-plugin = { module = "me.modmuss50:mod-publish-plugin", version.ref = "mod-publish-plugin" }
|
||||
gremlin-gradle = { group = "xyz.jpenilla", name = "gremlin-gradle", version.ref = "gremlin" }
|
||||
run-task = { module = "xyz.jpenilla:run-task", version.ref = "runTask" }
|
||||
|
||||
|
||||
@@ -106,8 +106,8 @@ carbonPermission.permissions.get().forEach {
|
||||
}
|
||||
}
|
||||
|
||||
modrinth {
|
||||
loaders.addAll("paper", "folia")
|
||||
publishMods.modrinth {
|
||||
modLoaders.addAll("paper", "folia")
|
||||
}
|
||||
|
||||
configurations.runtimeDownload {
|
||||
|
||||
@@ -49,8 +49,10 @@ tasks {
|
||||
}
|
||||
}
|
||||
|
||||
modrinth {
|
||||
optional.project("unsignedvelocity")
|
||||
publishMods.modrinth {
|
||||
optional {
|
||||
slug = "unsignedvelocity"
|
||||
}
|
||||
}
|
||||
|
||||
configurations.runtimeDownload {
|
||||
|
||||
Reference in new issue
Block a user