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:
+24
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env bash
|
||||
# What actually changes on the classpath of the six services. Writes output/15-dependency-diff.txt
|
||||
MOD=$(cd "$(dirname "$0")/.." && pwd); cd "$MOD" || exit 1
|
||||
for s in 1 5; do
|
||||
(cd run/shop$s && mvn -B -q dependency:list -DoutputFile=deps.txt ${MVN_ARGS:-} >/dev/null)
|
||||
cat run/shop$s/*/deps.txt | grep -oE '^ +[a-z][^ ]+' | sed 's/ //g' | awk -F: '{print $1":"$2" "$(NF-1)}' | sort -u > run/deps$s.txt
|
||||
done
|
||||
{ echo "# Libraries of the six services: Boot 4.1.3 / 2025.1.5 -> Boot 4.2.0 / 2026.0.0 (selected groups)"
|
||||
python3 -I - <<'P'
|
||||
import collections
|
||||
def load(n):
|
||||
d=collections.defaultdict(set)
|
||||
for l in open(f'run/deps{n}.txt'):
|
||||
k,v=l.split(); d[k].add(v)
|
||||
return d
|
||||
a,b=load(1),load(5)
|
||||
want=('org.springframework.cloud:','io.github.resilience4j:','io.projectreactor','org.jetbrains','org.springframework:spring-core','org.springframework.boot:spring-boot ','io.micrometer:micrometer-core','org.eclipse.jgit:org.eclipse.jgit')
|
||||
for k in sorted(set(a)|set(b)):
|
||||
if not any((k+' ').startswith(w) for w in want): continue
|
||||
o,n=','.join(sorted(a.get(k,[]))) or '(absent)', ','.join(sorted(b.get(k,[]))) or '(gone)'
|
||||
if o!=n: print(f'{k:62} {o:10} -> {n}')
|
||||
P
|
||||
} > output/15-dependency-diff.txt
|
||||
cat output/15-dependency-diff.txt
|
||||
Reference in New Issue
Block a user