Version Bump and Curseforge upload
This commit is contained in:
parent
bb7b8e6064
commit
c89900938b
2 changed files with 54 additions and 1 deletions
52
build.gradle
52
build.gradle
|
@ -8,6 +8,7 @@ plugins {
|
||||||
id 'fabric-loom' version "${loom_version}"
|
id 'fabric-loom' version "${loom_version}"
|
||||||
id 'maven-publish'
|
id 'maven-publish'
|
||||||
id "com.modrinth.minotaur" version "2.+"
|
id "com.modrinth.minotaur" version "2.+"
|
||||||
|
id "com.matthewprenger.cursegradle" version "1.4.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_17
|
sourceCompatibility = JavaVersion.VERSION_17
|
||||||
|
@ -275,4 +276,55 @@ modrinth {
|
||||||
optional.project "patchouli"
|
optional.project "patchouli"
|
||||||
}
|
}
|
||||||
debugMode = false
|
debugMode = false
|
||||||
|
}
|
||||||
|
|
||||||
|
curseforge {
|
||||||
|
def slurper = new groovy.json.JsonSlurper()
|
||||||
|
apiKey = new File(projectDir, "../CURSEFORGE_TOKEN")
|
||||||
|
if (apiKey.exists()) {
|
||||||
|
apiKey = apiKey.text
|
||||||
|
} else {
|
||||||
|
apiKey = ""
|
||||||
|
}
|
||||||
|
|
||||||
|
def changes = new File(projectDir, "CHANGES.md")
|
||||||
|
if (changes.exists()) {
|
||||||
|
changes = changes.getText('UTF-8')
|
||||||
|
} else {
|
||||||
|
changes = ""
|
||||||
|
}
|
||||||
|
|
||||||
|
project {
|
||||||
|
id = '413596'
|
||||||
|
changelogType = 'markdown'
|
||||||
|
changelog = changes
|
||||||
|
releaseType = project.release_channel
|
||||||
|
def versions = slurper.parseText(project.modrinth_versions);
|
||||||
|
def latestVersion = ''
|
||||||
|
for (v in versions) {
|
||||||
|
addGameVersion v
|
||||||
|
latestVersion = "[$v]"
|
||||||
|
}
|
||||||
|
addGameVersion 'Fabric'
|
||||||
|
addGameVersion 'Java 17'
|
||||||
|
relations {
|
||||||
|
requiredDependency 'fabric-api'
|
||||||
|
requiredDependency 'bclib'
|
||||||
|
optionalDependency 'emi'
|
||||||
|
optionalDependency 'roughly-enough-items'
|
||||||
|
optionalDependency 'patchouli'
|
||||||
|
optionalDependency 'trinkets'
|
||||||
|
}
|
||||||
|
mainArtifact(remapJar) {
|
||||||
|
displayName = "$project.modrinth_id-$project.version $latestVersion"
|
||||||
|
}
|
||||||
|
afterEvaluate {
|
||||||
|
mainArtifact(remapJar.outputs)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
options {
|
||||||
|
debug = false
|
||||||
|
forgeGradleIntegration = false
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -9,7 +9,8 @@ fabric_version=0.60.0+1.19.2
|
||||||
loom_version=0.12-SNAPSHOT
|
loom_version=0.12-SNAPSHOT
|
||||||
#Modrinth
|
#Modrinth
|
||||||
modrinth_versions=["1.19", "1.19.1", "1.19.2"]
|
modrinth_versions=["1.19", "1.19.1", "1.19.2"]
|
||||||
release_channel=release #`release`, `beta` or `alpha`
|
#`release`, `beta` or `alpha`
|
||||||
|
release_channel=release
|
||||||
modrinth_id=betterend
|
modrinth_id=betterend
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version=2.1.2
|
mod_version=2.1.2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue