From 8f3eaa0b4d2372c00167e5eeec66a7ec87089f27 Mon Sep 17 00:00:00 2001 From: Will FP <38837418+WillFP@users.noreply.github.com> Date: Thu, 11 Jul 2024 02:49:48 +0100 Subject: [PATCH] Update build.gradle.kts --- eco-core/core-plugin/build.gradle.kts | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/eco-core/core-plugin/build.gradle.kts b/eco-core/core-plugin/build.gradle.kts index c7ecbea..3004127 100644 --- a/eco-core/core-plugin/build.gradle.kts +++ b/eco-core/core-plugin/build.gradle.kts @@ -16,8 +16,23 @@ tasks { publishing { publications { - create("maven") { - from(components["java"]) + register("maven") { + groupId = project.group.toString() + version = project.version.toString() + artifactId = rootProject.name + + artifact(rootProject.tasks.shadowJar.get().archiveFile) + } + } + + repositories { + maven { + name = "auxilor" + url = uri("https://repo.auxilor.io/repository/maven-releases/") + credentials { + username = System.getenv("MAVEN_USERNAME") + password = System.getenv("MAVEN_PASSWORD") + } } } }