From 5b21d1ab3254518a3654457877a2e9379b94a55e Mon Sep 17 00:00:00 2001 From: mrsterner Date: Mon, 10 Jun 2024 18:42:28 +0200 Subject: [PATCH] maven? --- build.gradle.kts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index aa8e461c..0989b29a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -5,6 +5,7 @@ plugins { } version = property("mod_version")!! +group = property("mod_group_id")!! val port_lib_modules: String by extra @@ -119,4 +120,18 @@ java { // if it is present. // If you remove this line, sources will not be generated. withSourcesJar() +} + +publishing { + publications { + create("mavenJava") { + artifactId = base.archivesName.get() + from(components.getByName("java")) + } + } + repositories { + maven { + url = uri("file://${System.getenv("local_maven")}") + } + } } \ No newline at end of file