Croway opened a new pull request, #2116: URL: https://github.com/apache/camel-spring-boot/pull/2116
## Description [CAMEL-26590](https://issues.apache.org/jira/browse/CAMEL-26590): Spring Boot 4.2.0 support in the starters. The Spring Boot version and the Spring portfolio versions come from Camel through `camel-dependencies`, so this PR **needs apache/camel#30447 merged and its SNAPSHOT published**; CI fails until then. ### camel-spring-rabbitmq-starter: the RabbitMQ connection factory comes from `spring-boot-rabbitmq` In Spring Boot 4.2 the RabbitMQ (AMQP 0.9.1) auto-configuration moved from `spring-boot-amqp` to the new `spring-boot-rabbitmq` module, and `spring-boot-starter-amqp` now brings the generic AMQP 1.0 client instead. With only `spring-boot-starter-amqp` (as in the rabbitmq example) there is no `ConnectionFactory` bean on 4.2, so the `spring-rabbitmq` component has no connection factory. The starter now depends on `spring-boot-rabbitmq`, so the `ConnectionFactory` and `AmqpAdmin` the component autowires are auto-configured from the `spring.rabbitmq.*` properties. - `SpringRabbitMQConnectionFactoryAutowireTest`: the component uses Boot's `ConnectionFactory` and `AmqpAdmin` - `SpringRabbitMQBootConnectionFactoryIT`: routes a message through RabbitMQ (test-infra container) configured only with `spring.rabbitmq.*` ### json-path: the Spring Boot 4.1 workaround is removed Spring Boot 4.2 manages json-path 3.0.0, so the temporary json-path entry of `camel-spring-boot-dependencies` (CAMEL-22857, #2088) and the "JSONPath and Spring Boot 4.1" section of the Jackson page are removed. ### Regenerated - `camel-spring-boot-dependencies`: micrometer 1.18.0, micrometer-tracing 1.8.0; json-path no longer listed - `spring-boot.json` of camel-spring-boot: the configuration processor of Boot 4.2 keeps the endpoint group of `management.endpoint.camelroutes` (type `CamelRoutesEndpoint`); the properties are unchanged ### Not in this PR - Spring Cloud 2026.0.0 is not released yet: Camel uses spring-cloud-config 5.1.0-RC2 for now (see apache/camel#30447) - springdoc: no release built on Spring Boot 4.2 yet, stays on 3.0.2 - Spring AI 2.1.0: apache/camel#30444 - the rabbitmq example moves to `spring-boot-starter-rabbitmq` in apache/camel-spring-boot-examples (after this PR) ## Testing Against the apache/camel#30447 branch, on JDK 25 with Spring Boot 4.2.0: - `mvn install -Dfastinstall`: all modules build - `mvn verify` of `core/camel-spring-boot`, `core/camel-spring-boot-xml` and 27 Spring related starters (spring-rabbitmq, observability-services, platform-http, micrometer, micrometer-observability, observation, spring-cloud-config, undertow, undertow-spring-security, sql, kafka, mcp-server, ai-observability, jsonpath, hashicorp-vault, spring-ws, spring-redis, spring-batch, spring-security, spring-ldap, spring-jdbc, reactor, jms, springdoc, spring-ai-chat, spring, opentelemetry2): 650 tests (incl. 15 ITs), 0 failures - `archetypes/camel-archetype-spring-boot` ITs: the generated project builds and starts on Spring Boot 4.2.0 _Claude Code (Opus 5.5) 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]
