cf publish

This commit is contained in:
J. Fronny 2021-01-26 11:29:53 +00:00
parent 8ae6280419
commit 96db367656
3 changed files with 31 additions and 10 deletions

View File

@ -20,7 +20,9 @@ build_test:
only: only:
- master - master
modrinth: deploy:
stage: deploy stage: deploy
when: manual when: manual
script: gradle --build-cache publishModrinth script:
- gradle --build-cache publishModrinth
- gradle --build-cache curseforge

View File

@ -2,6 +2,7 @@ plugins {
id 'fabric-loom' version '0.5-SNAPSHOT' id 'fabric-loom' version '0.5-SNAPSHOT'
id 'maven-publish' id 'maven-publish'
id "com.modrinth.minotaur" version "1.1.0" id "com.modrinth.minotaur" version "1.1.0"
id "com.matthewprenger.cursegradle" version "1.4.0"
} }
sourceCompatibility = JavaVersion.VERSION_1_8 sourceCompatibility = JavaVersion.VERSION_1_8
@ -14,6 +15,7 @@ group = project.maven_group
repositories { repositories {
maven {url = "https://dl.bintray.com/user11681/maven"} maven {url = "https://dl.bintray.com/user11681/maven"}
maven { url = 'https://jitpack.io' } maven { url = 'https://jitpack.io' }
maven { url = 'https://maven.terraformersmc.com/'; name = "ModMenu" }
} }
dependencies { dependencies {
@ -37,9 +39,7 @@ dependencies {
transitive = false transitive = false
} }
modCompile("io.github.prospector:modmenu:1.14.9+build.14") { modCompile "com.terraformersmc:modmenu:1.14.15"
transitive = false
}
} }
processResources { processResources {
@ -89,3 +89,22 @@ task publishModrinth (type: TaskModrinthUpload){
tasks.publishModrinth.dependsOn(sourcesJar) tasks.publishModrinth.dependsOn(sourcesJar)
} }
} }
curseforge {
apiKey = System.getenv("CURSEFORGE_API_TOKEN") == null ? "###" : System.getenv("CURSEFORGE_API_TOKEN")
project {
id = "405095"
releaseType = 'release'
addGameVersion "Fabric"
addGameVersion "${project.minecraft_version}"
changelog = ""
mainArtifact(file("${project.buildDir}/libs/${archivesBaseName}-${version}.jar"))
mainArtifact.displayName = "[${project.minecraft_version}] ${project.mod_version}"
afterEvaluate {
uploadTask.dependsOn(remapJar)
}
}
options {
forgeGradleIntegration = false
}
}

View File

@ -2,13 +2,13 @@
org.gradle.jvmargs=-Xmx1G org.gradle.jvmargs=-Xmx1G
# Fabric Properties # Fabric Properties
# check these on https://modmuss50.me/fabric.html # check these on https://modmuss50.me/fabric.html
minecraft_version=1.16.4 minecraft_version=1.16.5
yarn_mappings=1.16.4+build.7 yarn_mappings=1.16.5+build.3
loader_version=0.10.8 loader_version=0.11.1
# Mod Properties # Mod Properties
mod_version=2.0 mod_version=2.1
maven_group=io.gitlab.jfronny maven_group=io.gitlab.jfronny
archives_base_name=modsmod archives_base_name=modsmod
# Dependencies # Dependencies
# check this on https://modmuss50.me/fabric.html # check this on https://modmuss50.me/fabric.html
fabric_version=0.26.2+1.16 fabric_version=0.29.4+1.16