From 63ec7666526711ba18b623629d4481ed945d27c7 Mon Sep 17 00:00:00 2001 From: melontini <104443436+melontini@users.noreply.github.com> Date: Sat, 27 Apr 2024 14:12:00 +0700 Subject: [PATCH] Add CurseForge publishing --- build.gradle | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/build.gradle b/build.gradle index 2156e15..e0febbf 100644 --- a/build.gradle +++ b/build.gradle @@ -167,18 +167,6 @@ sourcesJar { from delombok } -tasks.register('printVersionName') { - doLast { - println "${project.mod_version} (${project.minecraft_version})" - } -} - -tasks.register('printVersion') { - doLast { - println version - } -} - // configure the maven publication publishing { publications { @@ -219,6 +207,14 @@ publishMods { requires("fabric-api") embeds("dark-matter") } + curseforge { + projectId = "1009687" + accessToken = providers.environmentVariable("CURSEFORGE_TOKEN") + minecraftVersions.add("${project.minecraft_version}") + + requires("fabric-api") + embeds("dark-matter") + } github { repository = "constellation-mc/commander" accessToken = providers.environmentVariable("GITHUB_TOKEN")