From ce887a8e6db03400cecf4d775b3b1f8f1aff66d0 Mon Sep 17 00:00:00 2001 From: oier Date: Thu, 17 Aug 2023 10:51:36 +0200 Subject: [PATCH] :rocket: maven publish --- build.gradle | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 61e908d..a524a0a 100644 --- a/build.gradle +++ b/build.gradle @@ -298,7 +298,7 @@ if(System.getenv('MODRINTH_TOKEN') != null) { modrinth { token = System.getenv("MODRINTH_TOKEN") - projectId = "trading_station" + projectId = "mechanical_trading_station" versionNumber = "${mod_version}" versionName = "${display_name} - v${mod_version} for Minecraft ${minecraft_version}" versionType = "release" // This is the default -- can also be `beta` or `alpha` @@ -322,4 +322,16 @@ if(System.getenv('MODRINTH_TOKEN') != null) { tasks.withType(JavaCompile).configureEach { options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation -} \ No newline at end of file +} +publishing { + publications { + mavenJava(MavenPublication) { + artifact jar + } + } + repositories { + maven { + url "file://${project.projectDir}/mcmodsrepo" + } + } +}