Skip to content

build: add Implementation-Version to packaged jars - #4890

Merged
k-wall merged 1 commit into
kroxylicious:mainfrom
jabrailkhalil:build/implementation-version-metadata
Sep 14, 2026
Merged

k-wall merged 1 commit into
kroxylicious:mainfrom
jabrailkhalil:build/implementation-version-metadata

Conversation

@jabrailkhalil

Copy link
Copy Markdown
Contributor

Packaged JARs currently omit Implementation-Version, so applications cannot obtain the release version through Package.getImplementationVersion(). Enable the standard implementation manifest entries in the parent maven-jar-plugin configuration.

Closes #4666. Replaces #4884 and preserves the implementation discussed there, including Keith Wall's proposal to validate the packaged kroxylicious-api JAR in the existing lint workflow instead of adding a runtime integration test. The validator uses Maven's effective artifact path and checks the implementation metadata.

The previous PR was accidentally closed during a signoff repair when a shallow checkout lost its parent connection. The original parent and identical source tree have been restored. This replacement contains one commit and only the intended changes to pom.xml, .github/workflows/lint.yaml, and scripts/validate_jar_manifests.py. The author now has a matching DCO trailer; Keith Wall's attribution and signoff are preserved.

Validation for this repair: verified the source tree is identical to original commit 486b97ccd9fd295b7882b720cdfcbed21a9275e3, verified its original parent is preserved, and checked the GitHub comparison contains exactly those three files. Packaging tests were not rerun for this metadata-only repair; CI will validate the replacement PR.

@jabrailkhalil
jabrailkhalil requested a review from a team as a code owner September 11, 2026 11:45
@k-wall
k-wall force-pushed the build/implementation-version-metadata branch from 204574e to da4395b Compare September 12, 2026 17:12

@k-wall k-wall left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

Configure maven-jar-plugin to add the default implementation manifest entries and validate the packaged kroxylicious-api JAR in the existing lint workflow. The validation checks the exact Maven finalName artifact and keeps packaging-contract verification out of the runtime test suite.

Assisted-by: ChatGPT GPT-5.6 Sol
Co-authored-by: Keith Wall <[email protected]>
Signed-off-by: Keith Wall <[email protected]>
Signed-off-by: jabrailkhalil <[email protected]>
Signed-off-by: Jabrail <[email protected]>
@k-wall
k-wall force-pushed the build/implementation-version-metadata branch from da4395b to c532f94 Compare September 14, 2026 14:43
@k-wall
k-wall enabled auto-merge (squash) September 14, 2026 14:43
@sonarqubecloud

Copy link
Copy Markdown

@sonarqubecloud

Copy link
Copy Markdown

@k-wall
k-wall merged commit df6381f into kroxylicious:main Sep 14, 2026
71 of 76 checks passed
@k-wall k-wall added this to the 0.25.0 milestone Sep 15, 2026
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.

Populate Implementation-Version in JAR manifests via parent pom

2 participants