mirror of
https://github.com/FabricMC/fabric.git
synced 2024-11-14 19:25:23 -05:00
Update Modrinth plugin version (#2082)
* Update Modrinth plugin version from 1.1.0 to 2.4.3 * Fix checkVersion task
This commit is contained in:
parent
4e8ca3fd38
commit
2b0146fe54
1 changed files with 6 additions and 14 deletions
20
build.gradle
20
build.gradle
|
@ -13,7 +13,7 @@ plugins {
|
|||
id "com.diffplug.spotless" version "6.5.1"
|
||||
id "org.ajoberstar.grgit" version "3.1.0"
|
||||
id "com.matthewprenger.cursegradle" version "1.4.0"
|
||||
id "com.modrinth.minotaur" version "1.1.0"
|
||||
id "com.modrinth.minotaur" version "2.4.3"
|
||||
id "me.modmuss50.remotesign" version "0.3.0" apply false
|
||||
}
|
||||
|
||||
|
@ -519,6 +519,7 @@ curseforge {
|
|||
|
||||
if (signingEnabled) {
|
||||
project.tasks.curseforge.dependsOn signRemapJar
|
||||
project.tasks.modrinth.dependsOn signRemapJar
|
||||
build.dependsOn signRemapJar
|
||||
}
|
||||
|
||||
|
@ -545,22 +546,13 @@ task github(dependsOn: (signingEnabled ? signRemapJar : remapJar)) {
|
|||
}
|
||||
}
|
||||
|
||||
task modrinth(type: com.modrinth.minotaur.TaskModrinthUpload, dependsOn: (signingEnabled ? signRemapJar : remapJar)) {
|
||||
onlyIf {
|
||||
ENV.MODRINTH_TOKEN
|
||||
}
|
||||
|
||||
token = ENV.MODRINTH_TOKEN
|
||||
projectId = "P7dR8mSH"
|
||||
versionNumber = version
|
||||
modrinth {
|
||||
projectId = "fabric-api"
|
||||
versionName = "[$project.minecraft_version] Fabric API $project.version"
|
||||
releaseType = project.prerelease == "true" ? "beta" : "release"
|
||||
versionType = project.prerelease == "true" ? "beta" : "release"
|
||||
changelog = ENV.CHANGELOG ?: "No changelog provided"
|
||||
|
||||
uploadFile = signingEnabled ? signRemapJar.output : remapJar
|
||||
|
||||
addGameVersion(project.minecraft_version)
|
||||
addLoader('fabric')
|
||||
}
|
||||
|
||||
// A task to ensure that the version being released has not already been released.
|
||||
|
@ -576,6 +568,6 @@ task checkVersion {
|
|||
}
|
||||
|
||||
github.mustRunAfter checkVersion
|
||||
modrinth.mustRunAfter checkVersion
|
||||
project.tasks.modrinth.mustRunAfter checkVersion
|
||||
publish.mustRunAfter checkVersion
|
||||
project.tasks.curseforge.mustRunAfter checkVersion
|
||||
|
|
Loading…
Reference in a new issue