hvanhovell commented on code in PR #47378:
URL: https://github.com/apache/spark/pull/47378#discussion_r1680314151


##########
project/SparkBuild.scala:
##########
@@ -674,23 +664,76 @@ object SparkConnectCommon {
     // Exclude `scala-library` from assembly.
     (assembly / assemblyPackageScala / assembleArtifact) := false,
 
-    // Exclude `pmml-model-*.jar`, 
`scala-collection-compat_*.jar`,`jsr305-*.jar` and
-    // `netty-*.jar` and `unused-1.0.0.jar` from assembly.
+    // Select jars to exclude from the assembly. This should be consistent 
with the content of `maven-shade-plugin`.
     (assembly / assemblyExcludedJars) := {
-      val cp = (assembly / fullClasspath).value
-      cp filter { v =>
-        val name = v.data.getName
-        name.startsWith("pmml-model-") || 
name.startsWith("scala-collection-compat_") ||
-          name.startsWith("jsr305-") || name.startsWith("netty-") || name == 
"unused-1.0.0.jar"
+      val cp = (Runtime / managedClasspath).value
+      val prefixesToShade = Seq(

Review Comment:
   I'd love to use a less wonky mechanism here.



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