Croway opened a new pull request, #1878: URL: https://github.com/apache/camel-spring-boot/pull/1878
Fixes [CAMEL-23753](https://issues.apache.org/jira/browse/CAMEL-23753). > [!IMPORTANT] > Depends on apache/camel#25354 ([CAMEL-24212](https://issues.apache.org/jira/browse/CAMEL-24212)), which moves `spring-ai-version` to `2.0.0` in 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-starter` with any of the Spring AI starters ends up with two Spring AI majors on one classpath: | Starter | Spring AI | MCP SDK | Jackson | |---|---|---|---| | `camel-mcp-server-starter` | 2.0.0 (locally pinned) | 2.0.0 | 3 (`tools.jackson`) | | `camel-spring-ai-chat-starter` | 1.1.7 (via `camel-spring-ai-chat`) | 0.18.2 | 2 | After this change both resolve Spring AI 2.0.0 / MCP SDK 2.0.0 / Jackson 3. ## Changes The starters inherit `spring-ai-version` from the Camel parent, so most of this is regenerated output: * `camel-mcp-server-starter` drops 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. * 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 (see the camel PR for the behaviour change behind it). No Java changes were needed: the generated configuration classes only reference `ChatModel`, `EmbeddingModel`, `ImageModel` and `VectorStore`, all unchanged in Spring AI 2.0. ## Tests * `camel-mcp-server-starter`: 11/11 pass against Spring AI 2.0.0. * All five starters build against a locally installed `camel` snapshot carrying apache/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 default `temperature=0.7`. The Camel 4.22 upgrade guide in apache/camel#25354 covers this. --- _Claude Code on behalf of Federico Mariani_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
