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
+30
@@ -0,0 +1,30 @@
|
||||
#!/usr/bin/env bash
|
||||
# OpenFeign @SpringQueryMap and the vanished reactor-extra dependency, on the old and new train.
|
||||
set -uo pipefail
|
||||
cd "$(dirname "$0")/.."
|
||||
mkdir -p run output
|
||||
F=output/30-openfeign-querymap.txt; : > $F
|
||||
echo "# A record with a nested record, a list and a map, sent with @SpringQueryMap. What the server received (URL-decoded)." >> $F
|
||||
G=output/31-reactor-extra.txt; : > $G
|
||||
echo "# A class that imports reactor.retry.Repeat in a project that declares only spring-cloud-starter-loadbalancer." >> $G
|
||||
for t in "4.1.3 2025.1.5" "4.2.0 2026.0.0"; do
|
||||
read -r boot cloud <<<"$t"
|
||||
mvn -B -q -f probes/openfeign-querymap/pom.xml -Dboot.version=$boot -Dcloud.version=$cloud clean package ${MVN_ARGS:-} >/dev/null || exit 1
|
||||
{ echo; echo "=== Boot $boot / Spring Cloud $cloud"
|
||||
java -Xmx200m -cp "probes/openfeign-querymap/target/classes:probes/openfeign-querymap/target/dependency/*" \
|
||||
com.ankurm.upgrade.QueryMapProbeApplication --spring.main.banner-mode=off 2>&1 | grep -E '^RESULT' | sed 's/^RESULT //'
|
||||
ls probes/openfeign-querymap/target/dependency | grep -E '^feign-core|^spring-cloud-openfeign-core'; } >> $F
|
||||
if [ $cloud = 2026.0.0 ]; then
|
||||
{ echo; echo "=== Boot $boot / Spring Cloud $cloud + spring.cloud.openfeign.client.config.default.nested-query-map-enabled=true"
|
||||
java -Xmx200m -cp "probes/openfeign-querymap/target/classes:probes/openfeign-querymap/target/dependency/*" \
|
||||
com.ankurm.upgrade.QueryMapProbeApplication --spring.main.banner-mode=off \
|
||||
--spring.cloud.openfeign.client.config.default.nested-query-map-enabled=true 2>&1 | grep -E '^RESULT' | sed 's/^RESULT //'; } >> $F
|
||||
fi
|
||||
{ echo; echo "=== Boot $boot / Spring Cloud $cloud"
|
||||
if out=$(mvn -B -q -f probes/reactor-extra/pom.xml -Dboot.version=$boot -Dcloud.version=$cloud clean compile ${MVN_ARGS:-} 2>&1); then
|
||||
echo "compiles"
|
||||
else
|
||||
echo "$out" | grep -E '^\[ERROR\] .*\.java' | head -3 | sed "s#$PWD/##"
|
||||
fi; } >> $G
|
||||
done
|
||||
cat $F $G
|
||||
Reference in New Issue
Block a user