diff options
author | SHsuperCM <shsupercm@gmail.com> | 2022-03-18 12:35:46 +0200 |
---|---|---|
committer | SHsuperCM <shsupercm@gmail.com> | 2022-03-18 12:35:46 +0200 |
commit | c969ba6afc51906b1b361013d262a40b6f797811 (patch) | |
tree | 55ecfd87d1d97ca2e0de319f4e3f2ed60248264f /build.gradle | |
parent | b37e1f34cd57bb6fad7e46bc95bb569eadf4ce38 (diff) | |
download | CITResewn-c969ba6afc51906b1b361013d262a40b6f797811.tar.gz CITResewn-c969ba6afc51906b1b361013d262a40b6f797811.tar.bz2 CITResewn-c969ba6afc51906b1b361013d262a40b6f797811.zip |
Added CurseForge publishing
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 27 |
1 files 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 |