Skip to content

fix: let the Docker build produce a release-versioned jar - #296

Merged
HuiJun merged 1 commit into
developfrom
fix/docker-image-release-version
Nov 19, 2026
Merged

HuiJun merged 1 commit into
developfrom
fix/docker-image-release-version

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The image published as openmbee/mms:4.1.0 contains a jar versioned 4.1.0-SNAPSHOT (manifest Implementation-Version, and the bundled module jars such as crud-4.1.0-SNAPSHOT.jar). build.gradle appends -SNAPSHOT whenever the buildTag property 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_TAG build argument and passes it to Gradle as -PbuildTag:

docker build --build-arg BUILD_TAG=4.1.0 -t openmbee/mms:4.1.0 .
  • With BUILD_TAG equal to the version in gradle.properties, the jar is versioned 4.1.0.
  • Without it, behaviour is unchanged: the jar is versioned <version>-SNAPSHOT.
  • With a value that differs from gradle.properties, the build fails on the existing Version mismatch check in build.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.0 gave Implementation-Version: 4.1.0 and crud-4.1.0.jar; no argument gave 4.1.0-SNAPSHOT; BUILD_TAG=9.9.9 failed with Version 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

Devin Review

Co-Authored-By: jason.han <hanhuijun@gmail.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@HuiJun
HuiJun merged commit 8ddd235 into develop Nov 19, 2026
4 checks passed
@devin-ai-integration
devin-ai-integration Bot deleted the fix/docker-image-release-version branch November 20, 2026 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant