switch to curseforgegradle

i originally did this to see if it would fix a 403 error (it did not) but its api is nicer sooooo
This commit is contained in:
Jill 2023-08-29 14:09:49 +03:00
parent dbcbc873b4
commit 0bb24bea8d
Signed by: oat
GPG Key ID: 33489AA58A955108
1 changed files with 22 additions and 24 deletions

View File

@ -2,7 +2,7 @@ plugins {
id 'fabric-loom' version '1.0-SNAPSHOT'
id 'maven-publish'
id 'io.github.juuxel.loom-quiltflower' version '1.7.+'
id 'me.hypherionmc.cursegradle' version '2.+'
id 'net.darkhax.curseforgegradle' version '1.+'
id "com.modrinth.minotaur" version "2.+"
}
@ -100,32 +100,30 @@ publishing {
import com.modrinth.minotaur.dependencies.ModDependency
curseforge {
task curseforge(type: net.darkhax.curseforgegradle.TaskPublishCurseForge) {
if (!file('./CHANGELOG.md').canRead()) { throw new FileNotFoundException("Could not read changelog file") }
apiKey = project.hasProperty("CURSEFORGE_TOKEN") ? project.CURSEFORGE_TOKEN : ""
project {
id = '699839'
changelog = file('./CHANGELOG.md')
changelogType = 'markdown'
releaseType = 'release'
accepted_minecraft_version.split(",").each {
addGameVersion it.trim()
}
mainArtifact(remapJar) {
displayName = "${mod_version_friendly}"
relations {
requiredDependency 'fabric-api'
requiredDependency 'cloth-config'
optionalDependency 'modmenu'
}
}
}
options {
//debug = true
javaVersionAutoDetect = false
forgeGradleIntegration = false
apiToken = project.hasProperty("CURSEFORGE_TOKEN") ? project.CURSEFORGE_TOKEN : ""
disableVersionDetection()
def mainFile = upload('699839', jar)
mainFile.displayName = "${mod_version_friendly}"
mainFile.changelog = file('./CHANGELOG.md')
mainFile.changelogType = 'markdown'
mainFile.releaseType = 'release'
mainFile.addModLoader('fabric', 'quilt')
accepted_minecraft_version.split(",").each {
mainFile.addGameVersion it.trim()
}
mainFile.addRelation('fabric-api', 'requiredDependency')
mainFile.addRelation('cloth-config', 'requiredDependency')
mainFile.addRelation('modmenu', 'optionalDependency')
//debugMode = true
}
modrinth {