@@ -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
@@ -347,6 +348,14 @@ allprojects {
347348 // Force consistency for dependencies from pipeline and query
348349 force " org.dom4j:dom4j:${ dom4jVersion} "
349350
351+ // Force spring-ai components to bring in spring-* versions that match the rest of spring
352+ force " org.springframework:spring-context-support:${ springVersion} "
353+ force " org.springframework:spring-messaging:${ springVersion} "
354+ force " org.springframework:spring-webflux:${ springVersion} "
355+
356+ // spring-ai dependency. Force to mitigate a CVE.
357+ force " io.modelcontextprotocol.sdk:mcp:${ modelContextProtocolVersion} "
358+
350359 // Force consistency between pipeline's ActiveMQ and cloud's jClouds dependencies
351360 force " javax.annotation:javax.annotation-api:${ javaxAnnotationVersion} "
352361
@@ -362,6 +371,9 @@ allprojects {
362371 // Force latest hadoop-hdfs-client for CVE-2021-37404, CVE-2022-25168, CVE-2022-26612, CVE-2021-25642, CVE-2021-33036, CVE-2023-26031
363372 force " org.apache.hadoop:hadoop-hdfs-client:${ hadoopHdfsClientVersion} "
364373
374+ // Spring AI 2.0 brings in Jackson3. Force it to match embedded and mitigate CVEs.
375+ force " tools.jackson.core:jackson-core:${ jackson3Version} "
376+
365377 dependencySubstitution {
366378 // Because the client api artifact name is not the same as the directory structure, we use
367379 // Gradle's dependency substitution so the dependency will appear correctly in the pom files that
0 commit comments