adityamparikh opened a new pull request, #286:
URL: https://github.com/apache/solr-mcp/pull/286
## Summary
Moves the build onto the Spring Boot 4.2 / Spring AI 2.1 release candidates.
```diff
gradle/libs.versions.toml
-spring-boot = "4.1.1"
+spring-boot = "4.2.0-RC2"
-spring-ai = "2.0.1"
+spring-ai = "2.1.0-RC2"
-mcp-sdk = "2.0.1" # pin + mcp-bom library
removed
-opentelemetry-logback-appender = "2.28.1-alpha"
+opentelemetry-logback-appender = "2.33.1-alpha"
build.gradle.kts › dependencyManagement.imports
-mavenBom("io.modelcontextprotocol.sdk:mcp-bom:2.0.1")
mavenBom("org.springframework.ai:spring-ai-bom:…")
```
Two follow-on changes go with the bump:
- **MCP SDK pin dropped.** `mcp-bom` 2.0.1 was declared ahead of
`spring-ai-bom` to lift the SDK past what Spring AI 2.0.1 shipped. Spring AI
2.1.0-RC2 depends on SDK **2.2.0-M2** itself, and under the plugin's "first
declaration wins" rule the old pin would have held the SDK back at 2.0.1.
Without the pin, `mcp`, `mcp-core` and `mcp-json-jackson3` all resolve to
2.2.0-M2.
- **OTel logback appender aligned with Boot's OpenTelemetry 1.67.0.** Boot
manages `opentelemetry-api`/`sdk` but not `opentelemetry-api-incubator`, which
follows the appender. With 2.28.1-alpha the classpath mixed SDK 1.67.0 with
incubator 1.62.0-alpha:
```text
OpenTelemetrySdkAutoConfiguration.openTelemetrySdk
OpenTelemetrySdkBuilder.build (sdk 1.67.0)
SdkConfigProvider.<init>
DeclarativeConfigProperties.get (api-incubator
1.62.0-alpha)
→ NoClassDefFoundError: io/opentelemetry/api/internal/ConfigUtil
```
2.33.1-alpha is built against 1.67.0 and brings
`opentelemetry-api-incubator:1.67.0-alpha`. `dev-docs/graalvm-native-image.md`
records the new pairing and the error, and `AGENTS.md` records the new versions.
Both RCs are published to Maven Central, so no milestone repository is added.
## Evidence
- **Before** (versions bumped, appender unchanged): `./gradlew build` → 388
tests, **122 failed**. Every `@SpringBootTest` context failed on the
`NoClassDefFoundError` above, and `McpClientStdioIntegrationTest` timed out in
`initialize()` because the spawned jar died at startup.
**After:** `./gradlew build` → **460 tests, 0 failures, 0 skipped**,
`BUILD SUCCESSFUL`.
- The bootJar ships `spring-boot-4.2.0-RC2`, `spring-ai-mcp-2.1.0-RC2`,
`mcp-core-2.2.0-M2`, `opentelemetry-api-incubator-1.67.0-alpha`, and
`META-INF/sbom/application.cdx.json`.
## Merge Danger
**Door:** two-way
Reverting the version catalog and the BOM import restores 4.1.1 / 2.0.1. No
data or config formats change.
**Blast Radius:** runtime-wide
Every distribution artifact (Jib JVM image, both native images) picks up
pre-GA Boot, Spring AI and MCP SDK (2.2.0-M2) builds. The native images are
exercised by `native.yml`.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]