09 shows which language level each sealed feature needs; 10 runs the Payment model through Jackson 3 (jars fetched and sha1-checked, not committed). Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TF9JWFvJSNm6HVzswzZU5a
14 lines
712 B
Bash
Executable File
14 lines
712 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Downloads the three Jackson jars from Maven Central into ./lib and checks each against the published .sha1
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")"; mkdir -p lib
|
|
M=https://repo1.maven.org/maven2
|
|
for a in tools/jackson/core/jackson-databind/3.2.3/jackson-databind-3.2.3 \
|
|
tools/jackson/core/jackson-core/3.2.3/jackson-core-3.2.3 \
|
|
com/fasterxml/jackson/core/jackson-annotations/2.22/jackson-annotations-2.22; do
|
|
f="lib/$(basename "$a").jar"
|
|
[ -f "$f" ] || curl -sfL -o "$f" "$M/$a.jar"
|
|
want="$(curl -sfL "$M/$a.jar.sha1" | cut -d' ' -f1)"; got="$(sha1sum "$f" | cut -d' ' -f1)"
|
|
[ "$want" = "$got" ] && echo "ok $f $got" || { echo "SHA1 MISMATCH $f"; exit 1; }
|
|
done
|