diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index aa55379..caea4a6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,4 +23,6 @@ build_test: modrinth: stage: deploy when: manual - script: gradle --build-cache publishModrinth \ No newline at end of file + script: + - gradle --build-cache publishModrinth + - gradle --build-cache curseforge diff --git a/build.gradle b/build.gradle index 34341b1..15e69e9 100644 --- a/build.gradle +++ b/build.gradle @@ -2,6 +2,7 @@ plugins { id 'fabric-loom' version '0.5-SNAPSHOT' id 'maven-publish' id "com.modrinth.minotaur" version "1.1.0" + id "com.matthewprenger.cursegradle" version "1.4.0" } repositories { @@ -82,3 +83,22 @@ task publishModrinth (type: TaskModrinthUpload){ tasks.publishModrinth.dependsOn(sourcesJar) } } + +curseforge { + apiKey = System.getenv("CURSEFORGE_API_TOKEN") == null ? "###" : System.getenv("CURSEFORGE_API_TOKEN") + project { + id = "407012" + 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 + } +} diff --git a/gradle.properties b/gradle.properties index 759976c..75192c7 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,12 +2,12 @@ org.gradle.jvmargs=-Xmx1G # Fabric Properties # check these on https://modmuss50.me/fabric.html -minecraft_version=1.16.4 -yarn_mappings=1.16.4+build.7 -loader_version=0.10.8 +minecraft_version=1.16.5 +yarn_mappings=1.16.5+build.3 +loader_version=0.11.1 # Mod Properties -mod_version=1.1 +mod_version=1.1.1 maven_group=io.gitlab.jfronny archives_base_name=dynres #Dependencies -fabric_version=0.28.1+1.16 \ No newline at end of file +fabric_version=0.29.4+1.16