Repository navigation
fix: let the Docker build produce a release-versioned jar - #296
Merged
Merged
Conversation
Co-Authored-By: jason.han <hanhuijun@gmail.com>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
HuiJun
approved these changes
Nov 19, 2026
devin-ai-integration
Bot
deleted the
fix/docker-image-release-version
branch
November 20, 2026 02:33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The image published as
openmbee/mms:4.1.0contains a jar versioned4.1.0-SNAPSHOT(manifestImplementation-Version, and the bundled module jars such ascrud-4.1.0-SNAPSHOT.jar).build.gradleappends-SNAPSHOTwhenever thebuildTagproperty is missing, and the Dockerfile ran Gradle without it, so no Docker build could produce a release-versioned jar.The Dockerfile now takes an optional
BUILD_TAGbuild argument and passes it to Gradle as-PbuildTag:docker build --build-arg BUILD_TAG=4.1.0 -t openmbee/mms:4.1.0 .BUILD_TAGequal to the version ingradle.properties, the jar is versioned4.1.0.<version>-SNAPSHOT.gradle.properties, the build fails on the existingVersion mismatchcheck inbuild.gradle, so an image cannot be labelled with a version the source does not carry.Verification
Three local image builds from this branch:
BUILD_TAG=4.1.0gaveImplementation-Version: 4.1.0andcrud-4.1.0.jar; no argument gave4.1.0-SNAPSHOT;BUILD_TAG=9.9.9failed withVersion mismatch: 9.9.9 vs 4.1.0.These builds used a temporary copy of the Dockerfile that runs Gradle offline against a mounted dependency cache, because Maven Central was rate limiting the build machine. The Gradle arguments were otherwise identical. The resulting images were not started.
Link to Devin session: https://nasa-jpl-demo.devinenterprise.com/sessions/d9f10869eb3d4b268da3834fb1b42689
Open in Devin Desktop: https://nasa-jpl-demo.devinenterprise.com/desktop/session/d9f10869eb3d4b268da3834fb1b42689?variant=devin
Requested by: @HuiJun
🟢 Devin Review found nothing to fix · View findings