Description
Update SparkBuild.scala to force SBT use of protobuf-java to match the Maven version. The Maven dependencyManagement section forces protobuf-java to use 2.5.0, but SBT is using 3.14.0.
Snippet from Maven dependency tree
[INFO] +- com.google.crypto.tink:tink:jar:1.6.0:compile [INFO] | +- com.google.protobuf:protobuf-java:jar:2.5.0:compile <--- 2.x [INFO] | \- com.google.code.gson:gson:jar:2.8.6:compile
Snippet from SBT dependency tree
[info] +-com.google.crypto.tink:tink:1.6.0 [info] | +-com.google.code.gson:gson:2.8.6 [info] | +-com.google.protobuf:protobuf-java:3.14.0 <--- 3.x
The fix is updating SparkBuild.scala just like SPARK-11538 did with guava. In addition we should comment on the need to keep the top-level pom.xml and SparkBuild.scala in sync as was done in SPARK-41247