@@ -59,6 +59,7 @@ allprojects {
5959 JavaCompile compile ->
6060 compile. options. incremental = true // Gradle 3.4
6161 compile. options. encoding = ' UTF-8'
62+ compile. options. compilerArgs << ' -parameters' // Preserve method parameter names for Spring AI reflection
6263 }
6364}
6465
@@ -317,7 +318,7 @@ allprojects {
317318 // Reactor - transitive dependency via azure-core; force for version consistency across modules
318319 force " io.projectreactor:reactor-core:${ reactorCoreVersion} "
319320
320- // Netty - transitive dependency via azure-core-http-netty; force for CVE-2025-67735
321+ // Netty - transitive dependency via azure-core-http-netty; force for various CVEs
321322 force " io.netty:netty-buffer:${ nettyVersion} "
322323 force " io.netty:netty-codec:${ nettyVersion} "
323324 force " io.netty:netty-codec-dns:${ nettyVersion} "
@@ -375,6 +376,14 @@ allprojects {
375376 // Force consistency for dependencies from pipeline and query
376377 force " org.dom4j:dom4j:${ dom4jVersion} "
377378
379+ // Force spring-ai components to bring in spring-* versions that match the rest of spring
380+ force " org.springframework:spring-context-support:${ springVersion} "
381+ force " org.springframework:spring-messaging:${ springVersion} "
382+ force " org.springframework:spring-webflux:${ springVersion} "
383+
384+ // spring-ai dependency. Force to mitigate a CVE.
385+ force " io.modelcontextprotocol.sdk:mcp:${ modelContextProtocolVersion} "
386+
378387 // Force consistency between pipeline's ActiveMQ and cloud's jClouds dependencies
379388 force " javax.annotation:javax.annotation-api:${ javaxAnnotationVersion} "
380389
@@ -390,6 +399,9 @@ allprojects {
390399 // Force latest hadoop-hdfs-client for CVE-2021-37404, CVE-2022-25168, CVE-2022-26612, CVE-2021-25642, CVE-2021-33036, CVE-2023-26031
391400 force " org.apache.hadoop:hadoop-hdfs-client:${ hadoopHdfsClientVersion} "
392401
402+ // Spring AI 2.0 brings in Jackson3. Force it to match embedded and mitigate CVEs.
403+ force " tools.jackson.core:jackson-core:${ jackson3Version} "
404+
393405 dependencySubstitution {
394406 // Because the client api artifact name is not the same as the directory structure, we use
395407 // Gradle's dependency substitution so the dependency will appear correctly in the pom files that
0 commit comments