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