java-time: java.time on Jackson 3 vs 2, @JsonFormat, time zones, Spring Boot 4.2 spring.jackson.*
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b4HkWoC7hLzk61vZa8
This commit is contained in:
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
# Runs the Month program against several Jackson 3 releases (3.1.8 is what Spring Boot 4.2.0 manages).
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/.."
|
||||
MVN="mvn -B ${MVN_ARGS:-}"
|
||||
out=output/12-month-across-versions.txt
|
||||
: > "$out"
|
||||
for v in 3.1.8 3.2.4 3.3.0; do
|
||||
$MVN -q -Djackson3.version=$v clean compile 2>&1 | grep -vE "Picked up|WARNING" || true
|
||||
$MVN -q -Djackson3.version=$v dependency:build-classpath -Dmdep.outputFile=target/cp.txt >/dev/null 2>&1
|
||||
echo "######## Jackson $v" >> "$out"
|
||||
java -Duser.timezone=UTC -cp "target/classes:$(cat target/cp.txt)" com.ankurm.javatime.T11MonthTrap 2>&1 \
|
||||
| grep -vE "Picked up|^WARNING" >> "$out"
|
||||
echo >> "$out"
|
||||
done
|
||||
echo "wrote $out"
|
||||
Reference in New Issue
Block a user