gnodet opened a new pull request, #22087: URL: https://github.com/apache/camel/pull/22087
## Summary - `CatalogLoader.loadSpringBootCatalog()` now catches `UnsupportedClassVersionError` when loading `SpringBootRuntimeProvider` and provides a clear error message: *"Spring Boot runtime requires JDK 21+ starting from camel-spring-boot 4.19.0. Use --camel-spring-boot-version=4.18.x for JDK 17 compatibility, or run on JDK 21+."* - Tests (`ExportTest`, `ExportMainApplicationProperties`, `DependencyListTest`, `DependencyUpdateTest`) skip Spring Boot runtime type on JDK < 21 ## Context `camel-spring-boot` 4.19.0-SNAPSHOT moved to Spring Boot 4 (JDK 21). The `camel-catalog-provider-springboot` artifact is now compiled with Java 21 bytecode (class file version 65.0), causing `UnsupportedClassVersionError` on JDK 17. This broke `camel jbang export --runtime=spring-boot` on JDK 17 and caused CI failures on JDK 17 for any PR whose incremental build pulled in `camel-jbang-core`. ## Test plan - [x] All 75 tests pass on JDK 21+ (Spring Boot tests included) - [ ] CI validates JDK 17 no longer fails (Spring Boot tests skipped) -- 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]
