Configure publishing and update to official 1.20 release

This commit is contained in:
2023-06-07 19:21:30 +02:00
parent 78bec96ae8
commit 9e8eb208f6
5 changed files with 42 additions and 6 deletions

View File

@@ -3,6 +3,7 @@ plugins {
id 'maven-publish'
id 'idea'
id 'com.github.johnrengelman.shadow' version '7.0.0'
id "me.hypherionmc.modutils.modpublisher" version "1.0.13"
}
archivesBaseName = "${mod_name}-fabric-${minecraft_version}"
@@ -134,3 +135,30 @@ task copyAllArtifacts(type: Copy) {
}
build.finalizedBy(copyAllArtifacts)
publisher {
apiKeys {
modrinth = System.getenv("MODRINTH_TOKEN")
curseforge = System.getenv("CURSE_TOKEN")
}
curseID = curse_id
modrinthID = modrinth_id
versionType = "release"
changelog = rootProject.file("changelog.md")
version = "${minecraft_version}-${project.version}"
displayName = "[FABRIC/QUILT 1.20] CraterLib - ${project.version}"
gameVersions = ["1.20"]
loaders = ["fabric", "quilt"]
artifact = remapJar
modrinthDepends {
required = ["P7dR8mSH"]
}
curseDepends {
required = ["fabric-api"]
}
}
publishMod.dependsOn(build)