diff options
author | isXander <xander@isxander.dev> | 2024-04-15 17:44:45 +0100 |
---|---|---|
committer | isXander <xander@isxander.dev> | 2024-04-15 17:44:45 +0100 |
commit | 4283810e2b317d218fea6f923d18d8b33491f175 (patch) | |
tree | 0511d69fad3efce23b48c0505c7a9db8bb12a56d | |
parent | a37b711fe3da237757230b6735e4d8b111e75b69 (diff) | |
download | YetAnotherConfigLib-4283810e2b317d218fea6f923d18d8b33491f175.tar.gz YetAnotherConfigLib-4283810e2b317d218fea6f923d18d8b33491f175.tar.bz2 YetAnotherConfigLib-4283810e2b317d218fea6f923d18d8b33491f175.zip |
Fix snapshot versioning
-rw-r--r-- | build.gradle.kts | 8 |
1 files changed, 7 insertions, 1 deletions
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<MavenPublication>("mod") { groupId = "dev.isxander" - artifactId = "zoomify" + artifactId = "yet-another-config-lib" from(components["java"]) } |