From 3b3bee5209cf44c60ec788e155c761ebdf0902d0 Mon Sep 17 00:00:00 2001 From: bridge <ctibeheerder@gmail.com> Date: Sat, 1 Mar 2025 15:30:07 +0100 Subject: [PATCH] fix: CI --- build.gradle.kts | 1 + .../main/kotlin/entitylib.library-conventions.gradle.kts | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 3e659db..0035b25 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -22,6 +22,7 @@ fun getVersionMeta(includeHash: Boolean): String { return "$commitHash-SNAPSHOT" } version = "$fullVersion${getVersionMeta(true)}" +ext["fullVersion"] = fullVersion ext["versionBeta"] = getVersionMeta(true) ext["versionNoHash"] = "$fullVersion${getVersionMeta(false)}" diff --git a/buildSrc/src/main/kotlin/entitylib.library-conventions.gradle.kts b/buildSrc/src/main/kotlin/entitylib.library-conventions.gradle.kts index facd407..48af3f6 100644 --- a/buildSrc/src/main/kotlin/entitylib.library-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/entitylib.library-conventions.gradle.kts @@ -48,8 +48,10 @@ publishing { repositories { maven { - url = uri("https://git.netherite.gg/api/packages/Netherite-Public/maven") + val urlHost = "repo.netherite.gg" + name = "netheriteRepo" + url = uri("https://$urlHost/netherite") credentials(PasswordCredentials::class.java) authentication { @@ -62,7 +64,7 @@ publishing { create<MavenPublication>("EntityLib") { groupId = project.group as String artifactId = project.name - version = rootProject.ext["versionBeta"] as String + version = rootProject.ext["fullVersion"] as String from(components["java"]) pom {