Add ai-21-migration module: upgrading Spring AI 2.0.x to 2.1.0, measured. One probe source tree run on 2.0.0, 2.0.2, 2.0.3 and 2.1.0 (Anthropic prompt tokens with caching, auth header, discarded temperature, thinking parts, message mutability, entity() on refusals), three compile breaks, API and configuration diffs from the jars, ChatMemory to session copy, a wrapping ToolCallingManager under tool confirmation, the OpenAI Responses switch, VectorStore.upsert on real pgvector, a grep checklist and an OpenRewrite recipe. Scripted and local fake models; no provider called. Spring Boot 4.2.0, Spring AI 2.1.0, Java 25.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b7N4ZDbUtA3ofqAqRV
This commit is contained in:
Claude
2026-12-03 09:46:46 +05:30
parent 8f69e7bf50
commit c8fa0912f7
71 changed files with 1990 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
#!/usr/bin/env bash
# Artifacts and a few dependency versions: Spring AI 2.0.0, 2.0.3 and 2.1.0.
set -euo pipefail
cd "$(dirname "$0")/.."
mkdir -p target/bom
for v in 2.0.0 2.0.3 2.1.0; do
curl -s -f --retry 5 "https://repo1.maven.org/maven2/org/springframework/ai/spring-ai-bom/$v/spring-ai-bom-$v.pom" -o "target/bom/$v.pom"
sed -n 's:.*<artifactId>\(spring-ai-[^<]*\)</artifactId>.*:\1:p' "target/bom/$v.pom" | sort -u | grep -v '^spring-ai-bom$' > "target/bom/$v.txt"
curl -s -f --retry 5 "https://raw.githubusercontent.com/spring-projects/spring-ai/v$v/pom.xml" -o "target/bom/$v.root.xml"
done
{
echo "# spring-ai-bom: managed artifacts"
for v in 2.0.0 2.0.3 2.1.0; do echo "$v: $(wc -l < target/bom/$v.txt)"; done
echo; echo "in 2.0.3 but not 2.1.0:"; comm -23 target/bom/2.0.3.txt target/bom/2.1.0.txt | sed 's/^/ /'
echo; echo "new in 2.1.0 compared with 2.0.3:"; comm -13 target/bom/2.0.3.txt target/bom/2.1.0.txt | sed 's/^/ /'
echo; echo "# versions in the root pom.xml of each release tag"
printf '%-28s %-10s %-10s %-10s\n' property 2.0.0 2.0.3 2.1.0
for p in spring-boot.version anthropic-sdk.version openai-sdk.version com.google.genai.version mcp.sdk.version awssdk.version kotlin.version java.version; do
row=$(for v in 2.0.0 2.0.3 2.1.0; do sed -n "s:.*<$p>\([^<]*\)</$p>.*:\1:p" "target/bom/$v.root.xml" | head -1 | xargs printf '%-10s '; done)
printf '%-28s %s\n' "$p" "$row"
done
} > output/15-bom-diff.txt
cat output/15-bom-diff.txt