From 3db1776feae44b326aa8ee687ad2cd83772809e8 Mon Sep 17 00:00:00 2001 From: MartinSVK12 <37455793+MartinSVK12@users.noreply.github.com> Date: Sat, 5 Oct 2024 14:33:03 +0200 Subject: [PATCH] Add maven publishing. --- build.gradle | 24 ++++++++++++++++++++++++ gradle.properties | 4 ++-- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index e52c5066..1812d186 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,26 @@ 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 diff --git a/gradle.properties b/gradle.properties index 4d23c155..8dd9bb77 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,8 +1,8 @@ org.gradle.jvmargs=-Xmx2G org.gradle.daemon=false -mod_version=3.0.0 -mod_group=io.github.turniplabs +mod_version=3.0.0-beta.1 +mod_group=turniplabs mod_name=modmenu-bta bta_version=nightly-2024-10-04