Align dependency families in the version catalog and clear security advisories #466
All Vouch review confidence checks passed
Residual risk 0.30 = Change Risk (0.75) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.75 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.075
Real PR Conversation Timeline
1 comments
"Review active on #466"
general
weight: 0.35
pacmano1
Summary
gradle/libs.versions.tomlgave every library its own inline version, so single-artifact bumps (mostly Renovate security PRs) left library families split across versions:netty-codec4.1.136 with the restof Netty on 4.1.119,
derbyahead ofderbytools, andjackson-core2.18.8 with the rest of Jackson on 2.14.3. Resolution is non-transitive, so a mismatch like this shows up as a runtime linkage error, nota build failure. It has already happened once:
log4j-corewas bumped withoutlog4j-apiand broke the build.This PR moves families onto shared
[versions]refs so a bump moves the whole family, realigns Netty and Derby, removes duplicate module versions, and tidies the catalog. Jackson is not realigned; seebelow. Please review commit by commit. Each commit is self-contained and builds on its own, and the commits that change shipped jars are separate from the ones that only restructure the file.
## Commits
| # | Commit | Shipped jars change? |
|---|---|---|
| 1 | Share versions across library families (26
[versions]refs); document the Jackson blocker | No. Resolved dependency trees are identical || 2 | Unambiguous alias names (
awssdk-,jasper-,hk2-, …), sorted file, one bundle entry per line | No. Same module:version set (classpath order changed; see notes) || 3 | Netty aligned on 4.1.137.Final, including the epoll jar pinned in
server/build.gradle| Yes || 4 |
derby+derbytoolsaligned on 10.12.1.1 (v4.6.0 shipped 10.10.2.0) | Yes || 5 | Remove duplicate JUnit (4.8.1 / 4.13.1) and javax-annotation-api (1.3 / 1.3.2) versions |
cli-libonly (annotation-api 1.3 → 1.3.2); JUnit is test-only || 6 | OWASP dependency-check plugin moved to
[plugins]; catalog header rewritten | No |## Version choices
The rule used throughout: align each family on a version already in use, and go further only when a newer version clears known advisories (checked against OSV). Every target also meets Renovate's 14-day
minimumReleaseAge.- Netty 4.1.137.Final: 4.1.119 has open advisories in codec, codec-http, codec-http2, handler and native-epoll. 4.1.136 still has GHSA-8c42-7qj2-3j46, CVE-2026-75595 and CVE-2026-75596. 4.1.137 has none in
any shipped module.
- Derby 10.12.1.1: v4.6.0 shipped 10.10.2.0, and
derbyhas since been bumped alone to 10.11.1.1. Both of those are affected by CVE-2015-1832 (XXE in the embedded engine), which 10.12.1.1 fixes.CVE-2018-1313 (network server, not shipped) and CVE-2022-46337 (LDAP authenticator, not used) remain. On Maven Central only 10.17.1.0 fixes the latter, and it needs a newer Java than our Java 17 toolchain.
- JUnit 4.13.1: already used by the server tests. 4.8.1 has CVE-2020-15250.
## Why Jackson is not realigned
An earlier revision aligned Jackson on 2.18.10, which clears all known databind advisories, and it failed integration tests with
NoSuchMethodError: BeanDescription.findJsonValueMethod(). databind 2.16 andlater remove APIs that swagger-core 2.0.10 (
findJsonValueMethod,findPropertiesToIgnore) and the AWS SDK 2.15.28regionsmodule (PASCAL_CASE_TO_CAMEL_CASE) still call. The last databind release withall three is 2.15.4, which has more open advisories than today's 2.14.3. So Jackson stays exactly as it ships today (core 2.18.8, the rest 2.14.3). The catalog now documents the blocker next to
jackson-coreand the
jacksonref. Realigning Jackson needs swagger-core and the AWS SDK upgraded first, in a separate PR.## Compatibility checks
- Linkage, all libraries: for every project's runtime and test classpath, I resolved every class, method and field reference in every jar against the rest of the classpath plus the JDK, and compared
oie/mainwith this branch. As a positive control, the check reproduces the Jackson 2.18.10 failure above. Result: no new unresolved references.- Netty's optional LZ4 decoder references a different class in
lz4-java, which has never shipped, so it's unresolved before and after.- The alignment fixes real breaks.
derbytools10.10.2.0 called 12 Derby internals that don't exist inderby10.11.1.1, and mockito neededorg.junit.rules.TestRule, which JUnit 4.8.1 lacks.- No new runtime dependencies: the Netty modules depend only on each other, and Derby 10.12 is still a single jar with no dependencies.
- Derby on-disk compatibility: v4.6.0 shipped Derby 10.10.2.0, so installs upgrade 10.10.2.0 → 10.12.1.1. Existing embedded databases are soft-upgraded on first start (
database.urlhas noupgrade=true). I tested it with the real server schema: a database created by 10.10.2.0, then used alternately by 10.12.1.1 and 10.10.2.0 (identity inserts, the donkey statisticsCASEupdate, the alert andmessage-search
CASEqueries), keeps its data dictionary at 10.10 and works in both directions, so rolling back to v4.6.0 works. None of the 13 incompatibilities in the 10.11 and 10.12 release notes affectsthe engine's own SQL. User-written SQL against Derby that relies on the old behaviour (a
CAST(NULL AS …)of the wrong type in aCASE, or XML external entities) would now fail; worth a release-note line.- Classpath order (commit 2): sorting the bundles reorders the classpath. I compared which jar provides every class or resource that exists in more than one jar. The only change is
about.html, a licensenotice in both jetty's
apache-jspandecj. Launcher manifestClass-Pathentries are built from fixed lists of module names, so the new order doesn't affect them.## Testing
-
./gradlew build dist -PdisableSigning=true -Pcoverage=truepasses.-
verification-metadata.xmlwas regenerated with a coldGRADLE_USER_HOMEfor each commit that changes versions, as described in CONTRIBUTING.md. New entries are only the new versions and their parent POMs.- Checked that
server/setupstages only the new Netty and Derby jar versions, and the same Jackson jars asoie/main.- The donkey (23) and command (6) tests pass on JUnit 4.13.1 with Hamcrest 2.2.
## Notes for reviewers
- Existing checkouts need a clean build.
donkey/setupandcommand/build/cli-libare filled byCopytasks and keep old jar versions until./gradlew clean. The shipped distribution isn't affected:the server's
syncDonkeyLibsexcludesdatabase/.- The epoll jar doesn't do anything today.
netty-transport-native-epollcontains only the native library. The Java classes it needs (netty-transport-classes-epoll) have never shipped, so the AWS clientuses NIO. This PR only aligns the jar's version; removing it would be a separate change.
- Old checksum entries are kept.*
--write-verification-metadataonly adds entries, as the Renovate PRs have done. Pruning unused entries would be a separate cleanup.🤖 Generated with Claude Code