From c969ba6afc51906b1b361013d262a40b6f797811 Mon Sep 17 00:00:00 2001 From: SHsuperCM Date: Fri, 18 Mar 2022 12:35:46 +0200 Subject: Added CurseForge publishing --- build.gradle | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 1375453..c955edb 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,8 @@ import java.nio.file.Files plugins { id 'fabric-loom' version '0.11-SNAPSHOT' apply false id 'io.shcm.shsupercm.fabric.fletchingtable' version '1.4' apply false - id "com.modrinth.minotaur" version "2.+" apply false + id 'com.modrinth.minotaur' version '2.+' apply false + id 'com.matthewprenger.cursegradle' version '1.4.0' apply false } version = project.mod_version + "+" + project.minecraft_version @@ -70,7 +71,8 @@ allprojects { } } -apply plugin: "com.modrinth.minotaur" +apply plugin: 'com.modrinth.minotaur' +apply plugin: 'com.matthewprenger.cursegradle' loom { accessWidenerPath = file("src/main/resources/citresewn.accesswidener") @@ -89,6 +91,7 @@ java { sourcesJar { from project("defaults:").sourceSets.main.java.srcDirs } + modrinth { token = TOKEN_MODRINTH projectId = "otVJckYQ" @@ -98,4 +101,24 @@ modrinth { versionName = "v" + version additionalFiles = [ sourcesJar.outputs.getFiles().singleFile ] gameVersions = ["1.18", "1.18.1", "1.18.2"] +} + +curseforge { + apiKey = TOKEN_CURSEFORGE + project { + id = '521427' + changelogType = 'markdown' + changelog = file('Changelog.md') + releaseType = 'release' + mainArtifact(remapJar) { + displayName = "v" + version + } + addGameVersion 'Fabric' + addGameVersion '1.18' + addGameVersion '1.18.1' + addGameVersion '1.18.2' + } + options { + forgeGradleIntegration = false + } } \ No newline at end of file -- cgit