diff --git a/project/CelebornBuild.scala b/project/CelebornBuild.scala index f27001ce473..708e86ba159 100644 --- a/project/CelebornBuild.scala +++ b/project/CelebornBuild.scala @@ -690,6 +690,8 @@ trait SparkClientProjects { (assembly / assemblyMergeStrategy) := { case m if m.toLowerCase(Locale.ROOT).endsWith("manifest.mf") => MergeStrategy.discard + case "META-INF/LICENSE" | "META-INF/NOTICE" => MergeStrategy.preferProject + case PathList(ps@_*) if Assembly.isLicenseFile(ps.last) => MergeStrategy.discard // Drop all proto files that are not needed as artifacts of the build. case m if m.toLowerCase(Locale.ROOT).endsWith(".proto") => MergeStrategy.discard case m if m.toLowerCase(Locale.ROOT).startsWith("meta-inf/native-image") => MergeStrategy.discard @@ -881,6 +883,8 @@ trait FlinkClientProjects { (assembly / assemblyMergeStrategy) := { case m if m.toLowerCase(Locale.ROOT).endsWith("manifest.mf") => MergeStrategy.discard + case "META-INF/LICENSE" | "META-INF/NOTICE" => MergeStrategy.preferProject + case PathList(ps@_*) if Assembly.isLicenseFile(ps.last) => MergeStrategy.discard // Drop all proto files that are not needed as artifacts of the build. case m if m.toLowerCase(Locale.ROOT).endsWith(".proto") => MergeStrategy.discard case m if m.toLowerCase(Locale.ROOT).startsWith("meta-inf/native-image") => MergeStrategy.discard @@ -958,11 +962,10 @@ object MRClientProjects { (assembly / assemblyMergeStrategy) := { case m if m.toLowerCase(Locale.ROOT).endsWith("manifest.mf") => MergeStrategy.discard + // For netty-3.x.y.Final.jar case m if m.startsWith("META-INF/license/") => MergeStrategy.discard - case m if m == "META-INF/LICENSE.txt" => MergeStrategy.discard - case m if m == "META-INF/NOTICE.txt" => MergeStrategy.discard - case m if m == "LICENSE.txt" => MergeStrategy.discard - case m if m == "NOTICE.txt" => MergeStrategy.discard + case "META-INF/LICENSE" | "META-INF/NOTICE" => MergeStrategy.preferProject + case PathList(ps@_*) if Assembly.isLicenseFile(ps.last) => MergeStrategy.discard // Drop all proto files that are not needed as artifacts of the build. case m if m.toLowerCase(Locale.ROOT).endsWith(".proto") => MergeStrategy.discard case m if m.toLowerCase(Locale.ROOT).startsWith("meta-inf/native-image") => MergeStrategy.discard