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:
Executable
+12
@@ -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
|
||||
Reference in New Issue
Block a user