build(backend): inject app version in jar manifest (#957)

This commit is contained in:
James Ward
2026-04-28 05:57:44 -04:00
committed by GitHub
parent bf7c2d8dd4
commit 5242fe1dc9
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -17,6 +17,8 @@ RUN --mount=type=cache,target=/workspace/.yarn/cache \
FROM --platform=$BUILDPLATFORM gradle:9.4.1-jdk25-alpine AS backend-build
ARG TARGETARCH
ARG APP_VERSION=development
ARG APP_REVISION=unknown
WORKDIR /workspace/backend
+1 -1
View File
@@ -14,7 +14,7 @@ plugins {
}
group = "org.booklore"
version = "0.0.1-SNAPSHOT"
version = System.getenv("APP_VERSION") ?: "0.0.1-SNAPSHOT"
val defaultFrontendDistDir = file("${rootDir}/../frontend/dist/grimmory/browser")
val configuredFrontendDistDir = providers.gradleProperty("frontendDistDir")