Add cloud-2026-upgrade: step-by-step upgrade of the shop to Spring Boot 4.2.0 / Spring Cloud 2026.0.0, with probes

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b4HkWoC7hLzk61vZa8
This commit is contained in:
Claude
2026-12-04 08:21:10 +05:30
parent 3c17b13c3f
commit 2ddc181501
59 changed files with 1669 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
# The two class-level demos from the preview article, re-run on the GA jars (Boot 4.2.0 / Spring Cloud 2026.0.0).
set -uo pipefail
cd "$(dirname "$0")/.."
mvn -B -q -f probes/preview-demos/pom.xml clean package ${MVN_ARGS:-} >/dev/null || exit 1
CP='probes/preview-demos/target/classes:probes/preview-demos/target/dependency/*'
clean() { grep -vE 'Picked up|DEBUG|^\s+at |^\s+\.\.\.|^org\.spring|^Caused by' | sed -E 's/^[0-9:.]+ \[main\] WARN org\.springframework\.cloud\.config\.monitor\./WARN /'; }
for pair in "ForwardedDemo 50-forwarded-filters-ga" "HttpNotifierDemo 51-http-notifier-ga"; do
read -r main file <<<"$pair"
env -u JAVA_TOOL_OPTIONS java -cp "$CP" ankurm.sc.$main 2>&1 | clean > output/$file.txt
cat output/$file.txt
done