SLING-13253 - upgrade JGit to 7.7.1 - #47
Merged
Merged
Conversation
The 5.13.x line the project tracks is the Java 8 maintenance branch and has no shallow clone support, which the website update needs to avoid cloning the site's full history. JGit 7 additionally imports org.apache.commons.codec.digest, which Maven had mediated down to a version below the range it requires, so commons-codec is declared explicitly, and javax.management, which the jlink'd JRE did not include - without that module the bundle silently fails to resolve and the CLI does nothing at all.
royteeuwen
force-pushed
the
feature/SLING-13253-upgrade-jgit
branch
from
August 7, 2026 15:17
f3c7374 to
6fdd4b1
Compare
This was referenced Aug 7, 2026
|
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.



Stack: 1 of 3 — this is the bottom; #40 and #48 build on it.
Upgrades JGit from the 5.13.x line to 7.7.1.
The 5.13.x line is JGit's Java 8 maintenance branch and has no shallow clone support (
CloneCommand.setDepthdoes not exist there). #48 needs it to clone only the tip of the site repository instead of its full history — ~25 MB rather than ~380 MB.Two things beyond the version bump are required, both found by running the built image rather than by compiling:
org.apache.commons.codec.digestin range[1.15,2); Maven had mediated the transitive version down to 1.11, below that range, and the feature did not list it at all.java.managementis added to thejlinkmodule list. JGit 7 importsjavax.management, which the trimmed JRE did not include. Without it the bundle fails to resolve and the CLI silently does nothing — it looks like a hang rather than an error.Verified independently of the rest of the stack: builds and passes the full suite on its own (144 tests), and all 14 commands resolve and run in the rebuilt image.