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
+18
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
# Regenerates every file in output/. Run from the module directory: ./scripts/run-all.sh
|
||||
# Needs JDK 25 and Maven. The Spring Boot examples are in boot/ and run from ./scripts/run-boot.sh
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/.."
|
||||
MVN="mvn -B ${MVN_ARGS:-}"
|
||||
$MVN -q compile 2>&1 | grep -vE "Picked up|WARNING" || true
|
||||
$MVN -q dependency:build-classpath -Dmdep.outputFile=target/cp.txt >/dev/null 2>&1
|
||||
CP="target/classes:$(cat target/cp.txt)"
|
||||
mkdir -p output
|
||||
n=1
|
||||
for src in src/main/java/com/ankurm/javatime/T[0-9][0-9]*.java; do
|
||||
c=$(basename "$src" .java)
|
||||
out="output/${c:1:2}-${c:3}.txt"
|
||||
java -Duser.timezone=UTC -Duser.language=en -Duser.country=US -Dstdout.encoding=UTF-8 -cp "$CP" "com.ankurm.javatime.$c" 2>&1 | grep -vE "Picked up|^WARNING" > "$out"
|
||||
echo "ran $c ($(wc -l < "$out") lines)"
|
||||
done
|
||||
./scripts/broken.sh
|
||||
Reference in New Issue
Block a user