LuciferYang opened a new pull request, #55204: URL: https://github.com/apache/spark/pull/55204
### What changes were proposed in this pull request? This pr add `com.google.code.gson:gson` to `DependencyOverrides` in `project/SparkBuild.scala`, reading the version from `gson.version` property in the effective pom. ### Why are the changes needed? Maven's root `pom.xml` declares `gson.version=2.13.2` in `<dependencyManagement>`, forcing all modules to resolve that version. The SBT build's `DependencyOverrides` object already overrides guava, jackson, avro, slf4j, xz, and jline to match Maven, but **gson was missing**. Without this override, Coursier resolves gson `2.11.0` from transitive dependencies (`grpc-core:1.76.0` → `gson:2.11.0`, `protobuf-java-util:4.33.5` → `gson:2.11.0`), while Maven resolves `2.13.2`. This causes differences in assembled jars for modules that shade gson (e.g., `connect-client-jvm`): gson 2.11.0 → 2.13.2 underwent internal class restructuring (e.g., `$Gson$Types` → `GsonTypes`, `TypeAdapters$EnumTypeAdapter` → standalone `EnumTypeAdapter`), resulting in ~20 class differences. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? - Pass Github Actions ### Was this patch authored or co-authored using generative AI tooling? No -- 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]
