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("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 {