Configure publishing and update to official 1.20 release
This commit is contained in:
@@ -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)
|
Reference in New Issue
Block a user