From ce184fa6c1a67c7cc564ff9d16f4239fa153b160 Mon Sep 17 00:00:00 2001 From: MartinSVK12 <37455793+MartinSVK12@users.noreply.github.com> Date: Sat, 5 Oct 2024 14:35:41 +0200 Subject: [PATCH] Add maven publishing. --- build.gradle | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/build.gradle b/build.gradle index e52c506..e01427c 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,7 @@ plugins { id 'fabric-loom' version '1.7.bta' id 'java' + id 'maven-publish' } import org.gradle.internal.os.OperatingSystem @@ -141,3 +142,25 @@ processResources { expand "version": version } } + +publishing { + repositories { + maven { + name = "signalumMaven" + url = "https://maven.thesignalumproject.net/releases" + credentials(PasswordCredentials) + authentication { + basic(BasicAuthentication) + } + } + } + + publications { + maven(MavenPublication) { + groupId = project.mod_group + artifactId = project.mod_name + version = project.mod_version + from components.java + } + } +} \ No newline at end of file