From 4283810e2b317d218fea6f923d18d8b33491f175 Mon Sep 17 00:00:00 2001 From: isXander Date: Mon, 15 Apr 2024 17:44:45 +0100 Subject: Fix snapshot versioning --- build.gradle.kts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index bef4d2f..a930c02 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -25,6 +25,12 @@ val mcDep = findProperty("fmj.mcDep")?.toString() group = "dev.isxander" val versionWithoutMC = "3.4.0" version = "$versionWithoutMC+${stonecutter.current.project}" + +val snapshotVer = "${grgit.branch.current().name.replace('/', '.')}-SNAPSHOT" +if (System.getenv().containsKey("GITHUB_ACTIONS")) { + version = "$version+$snapshotVer" +} + val isAlpha = "alpha" in version.toString() val isBeta = "beta" in version.toString() @@ -278,7 +284,7 @@ publishing { publications { create("mod") { groupId = "dev.isxander" - artifactId = "zoomify" + artifactId = "yet-another-config-lib" from(components["java"]) } -- cgit