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.
This commit is contained in:
Andreas Troelsen
2023-12-30 23:36:07 +01:00
parent 7942c33e67
commit 4c855e6705
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -26,4 +26,4 @@ jobs:
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: MobArena.jar name: MobArena.jar
path: build/libs/MobArena.jar path: build/libs/MobArena-*.jar
-1
View File
@@ -58,7 +58,6 @@ tasks {
archiveBaseName = "MobArena" archiveBaseName = "MobArena"
archiveClassifier = "" archiveClassifier = ""
archiveVersion = ""
} }
// We're using shadowJar, so we can skip the regular jar task. // We're using shadowJar, so we can skip the regular jar task.