From 9a560cd8c6aac5a5d14a4d30574f9044a48fa5ea Mon Sep 17 00:00:00 2001 From: Len <40720638+destro174@users.noreply.github.com> Date: Sun, 26 May 2024 11:33:20 +0200 Subject: [PATCH] Build changes --- api/build.gradle.kts | 9 +-------- build.gradle.kts | 30 ++++++++++++------------------ 2 files changed, 13 insertions(+), 26 deletions(-) diff --git a/api/build.gradle.kts b/api/build.gradle.kts index 14e5b19..e008845 100644 --- a/api/build.gradle.kts +++ b/api/build.gradle.kts @@ -16,14 +16,7 @@ publishing { publications { create("mavenJava") { from(components["java"]) - } - } - - repositories{ - maven { - name = "maven" - url = uri("https://repo.destro.xyz/snapshots") - credentials(PasswordCredentials::class) + artifactId = "${project.name}-$version.jar" } } } \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index 8fe2d9e..84107d8 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -23,6 +23,18 @@ subprojects { languageVersion.set(JavaLanguageVersion.of(17)) } } + + publishing { + configure { + repositories { + maven { + name = "maven" + url = uri("https://repo.destro.xyz/snapshots/") + credentials(PasswordCredentials::class) + } + } + } + } } dependencies { @@ -56,24 +68,6 @@ tasks { } } -publishing { - publications { - create("mavenJava") { - from(components["java"]) - } - } - - configure { - repositories { - maven { - name = "maven" - url = uri("https://repo.destro.xyz/snapshots/") - credentials(PasswordCredentials::class) - } - } - } -} - dependencies { compileOnly("com.alttd:Comet-API:1.20.4-R0.1-SNAPSHOT") }