LuciferYang commented on code in PR #42441:
URL: https://github.com/apache/spark/pull/42441#discussion_r1293216847


##########
project/SparkBuild.scala:
##########
@@ -934,6 +938,90 @@ object SparkConnectClient {
   }
 }
 
+object SparkConnectClientInternal {

Review Comment:
   ```
   object SparkConnectClientInternal {
     import BuildCommons.protoVersion
   
     lazy val settings = Seq(
       // For some reason the resolution from the imported Maven build does not 
work for some
       // of these dependendencies that we need to shade later on.
       libraryDependencies ++= {
         val guavaVersion =
           SbtPomKeys.effectivePom.value.getProperties.get(
             "connect.guava.version").asInstanceOf[String]
         Seq(
           "com.google.guava" % "guava" % guavaVersion,
           "com.google.protobuf" % "protobuf-java" % protoVersion % "protobuf"
         )
       },
   
       dependencyOverrides ++= {
         val guavaVersion =
           SbtPomKeys.effectivePom.value.getProperties.get(
             "connect.guava.version").asInstanceOf[String]
         Seq(
           "com.google.guava" % "guava" % guavaVersion,
           "com.google.protobuf" % "protobuf-java" % protoVersion
         )
       }
     )
   }
   ```
   
   I think we can simplify it as above



-- 
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]

Reply via email to