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:
parent
dbcbc873b4
commit
0bb24bea8d
46
build.gradle
46
build.gradle
|
@ -2,7 +2,7 @@ plugins {
|
||||||
id 'fabric-loom' version '1.0-SNAPSHOT'
|
id 'fabric-loom' version '1.0-SNAPSHOT'
|
||||||
id 'maven-publish'
|
id 'maven-publish'
|
||||||
id 'io.github.juuxel.loom-quiltflower' version '1.7.+'
|
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.+"
|
id "com.modrinth.minotaur" version "2.+"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,32 +100,30 @@ publishing {
|
||||||
|
|
||||||
import com.modrinth.minotaur.dependencies.ModDependency
|
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") }
|
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) {
|
apiToken = project.hasProperty("CURSEFORGE_TOKEN") ? project.CURSEFORGE_TOKEN : ""
|
||||||
displayName = "${mod_version_friendly}"
|
|
||||||
relations {
|
disableVersionDetection()
|
||||||
requiredDependency 'fabric-api'
|
|
||||||
requiredDependency 'cloth-config'
|
def mainFile = upload('699839', jar)
|
||||||
optionalDependency 'modmenu'
|
mainFile.displayName = "${mod_version_friendly}"
|
||||||
}
|
mainFile.changelog = file('./CHANGELOG.md')
|
||||||
}
|
mainFile.changelogType = 'markdown'
|
||||||
}
|
mainFile.releaseType = 'release'
|
||||||
options {
|
|
||||||
//debug = true
|
mainFile.addModLoader('fabric', 'quilt')
|
||||||
javaVersionAutoDetect = false
|
|
||||||
forgeGradleIntegration = false
|
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 {
|
modrinth {
|
||||||
|
|
Loading…
Reference in New Issue