CAMEL-23753: camel-spring-boot - upgrade to Spring AI 2.0 - #1878
Merged
Conversation
Follows CAMEL-24212 in apache/camel, which moves spring-ai-version to 2.0.0 in the Camel
parent. The starters inherit that property, so most of the change is regenerated output.
Before this, an application combining camel-mcp-server-starter with any of the Spring AI
starters ended up with two Spring AI majors on one classpath: camel-mcp-server-starter
pinned Spring AI 2.0.0 (MCP SDK 2.0.0, Jackson 3) while camel-spring-ai-chat-starter
resolved Spring AI 1.1.7 through camel-spring-ai-chat (MCP SDK 0.18.2, Jackson 2).
* camel-mcp-server-starter drops its local spring-ai-mcp-version pin and uses
${spring-ai-version} from the Camel parent, which is now on the 2.x line.
* The four Spring AI starters pick up generated commons-logging exclusions, since
Spring AI 2.0 brings commons-logging transitively.
* Regenerated the spring-ai-chat catalog entry for the reworded toolNames option.
Tests: camel-mcp-server-starter passes 11/11 against Spring AI 2.0.0, and all five
starters build.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
davsclaus
approved these changes
Aug 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes CAMEL-23753.
Important
Depends on apache/camel#25354 (CAMEL-24212), which moves
spring-ai-versionto2.0.0in the Camel parent. CI here cannot go green until that merges and a snapshot is published.Why
Today an application that combines
camel-mcp-server-starterwith any of the Spring AI starters ends up with two Spring AI majors on one classpath:camel-mcp-server-startertools.jackson)camel-spring-ai-chat-startercamel-spring-ai-chat)After this change both resolve Spring AI 2.0.0 / MCP SDK 2.0.0 / Jackson 3.
Changes
The starters inherit
spring-ai-versionfrom the Camel parent, so most of this is regenerated output:camel-mcp-server-starterdrops its local<spring-ai-mcp-version>2.0.0</spring-ai-mcp-version>pin in favour of${spring-ai-version}, which is now on the 2.x line. The pin existed only because Spring AI's MCP server support needed 2.x while the rest of the build was on 1.1.x — that gap is now closed.commons-loggingexclusions, since Spring AI 2.0 bringscommons-loggingtransitively.spring-ai-chatcatalog entry for the rewordedtoolNamesoption (see the camel PR for the behaviour change behind it).No Java changes were needed: the generated configuration classes only reference
ChatModel,EmbeddingModel,ImageModelandVectorStore, all unchanged in Spring AI 2.0.Tests
camel-mcp-server-starter: 11/11 pass against Spring AI 2.0.0.camelsnapshot carrying CAMEL-24212: camel-spring-ai - upgrade to Spring AI 2.0 camel#25354.Note for users
Applications that configure Spring AI themselves must migrate with it — most notably the Jackson 3 move, the flattened property keys (
spring.ai.<provider>.chat.options.model→spring.ai.<provider>.chat.model), and the removal of the defaulttemperature=0.7. The Camel 4.22 upgrade guide in apache/camel#25354 covers this.Claude Code on behalf of Federico Mariani