More publishing suffering

This commit is contained in:
Aizistral
2026-01-25 03:32:07 +01:00
parent 8db5cd06c5
commit 0569f181ae
3 changed files with 34 additions and 22 deletions

View File

@@ -1,5 +1,5 @@
plugins {
id 'net.fabricmc.fabric-loom-remap' version "${loom_version}"
id 'fabric-loom' version "${loom_version}"
id 'maven-publish'
id "com.modrinth.minotaur" version "2.+"
id "com.matthewprenger.cursegradle" version "1.4.0"
@@ -66,6 +66,7 @@ curseforge {
releaseType = 'release'
changelogType = 'markdown'
changelog = file('../CHANGELOG.md')
mainArtifact(remapJar)
addGameVersion '1.16.4'
addGameVersion '1.16.5'
@@ -82,10 +83,10 @@ modrinth {
token = findProperty('modrinthKey') ?: '0'
projectId = "z440MEwJ"
versionNumber = project.version
versionName = "No Chat Restrictions v" + project.version
versionName = "No Chat Restrictions " + project.version
versionType = "release"
changelog = rootProject.file("../CHANGELOG.md").text
uploadFile = jar
uploadFile = remapJar
gameVersions = [ '1.16.4', '1.16.5' ]
loaders = [ 'fabric' ]
@@ -94,6 +95,15 @@ modrinth {
}
}
afterEvaluate {
tasks.named('modrinth') {
dependsOn(remapJar)
}
tasks.named('curseforge') {
dependsOn(remapJar)
}
}
task upload {
dependsOn('modrinth')
dependsOn('curseforge')