From 4c855e6705ea3dad4faa337b39f2a5bf322e4d95 Mon Sep 17 00:00:00 2001 From: Andreas Troelsen Date: Sat, 30 Dec 2023 23:36:07 +0100 Subject: [PATCH] Include version in artifact filename. Removes the "archive version" override for the `shadowJar` task in the build file, resulting in a jar-file that contains the current version number in the filename. It's mostly a convenience tradeoff; either we can see the version directly in the filename and avoid assumptions, or we can easily overwrite an existing jar-file with a new one. Also updates the upload step of the build workflow to a glob pattern so we grab the file regardless of the version. --- .github/workflows/build.yml | 2 +- build.gradle.kts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0cb049f..c7275ae 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,4 +26,4 @@ jobs: uses: actions/upload-artifact@v3 with: name: MobArena.jar - path: build/libs/MobArena.jar + path: build/libs/MobArena-*.jar diff --git a/build.gradle.kts b/build.gradle.kts index 2c78c2c..467e998 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -58,7 +58,6 @@ tasks { archiveBaseName = "MobArena" archiveClassifier = "" - archiveVersion = "" } // We're using shadowJar, so we can skip the regular jar task.