From 5d917b566caf08156926478002c07900369457d4 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 19 Nov 2026 02:28:35 +0000 Subject: [PATCH] fix: let the Docker build produce a release-versioned jar Co-Authored-By: jason.han --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6c82c4b24..6225d46d1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,9 @@ FROM eclipse-temurin:17-jdk AS build COPY . /mms WORKDIR /mms -RUN ./gradlew --no-daemon bootJar --warning-mode all +# Pass the release tag (--build-arg BUILD_TAG=x.y.z) for a release build; without it the jar is versioned -SNAPSHOT. +ARG BUILD_TAG= +RUN ./gradlew --no-daemon -PbuildTag="${BUILD_TAG}" bootJar --warning-mode all RUN find . -type f -name 'example-*.jar' -not -iname '*javadoc*' -not -iname '*sources*' -not -iname '*plain*' -exec cp '{}' '/app.jar' ';' \ && mkdir -p jacocoJars