Skip to content

Commit

Permalink
Merge pull request #521 from softwaremill/fix-assembly
Browse files Browse the repository at this point in the history
fix sbt assembly
  • Loading branch information
adamw authored Jan 13, 2021
2 parents a6dc633 + 276fbc8 commit 657355f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ val securityDependencies = Seq(
)

val emailDependencies = Seq(
"com.sun.mail" % "javax.mail" % "1.6.2"
"com.sun.mail" % "javax.mail" % "1.6.2" exclude("javax.activation", "activation")
)

val scalatest = "org.scalatest" %% "scalatest" % "3.2.3" % Test
Expand Down Expand Up @@ -147,8 +147,9 @@ lazy val fatJarSettings = Seq(
assemblyJarName in assembly := "bootzooka.jar",
assembly := assembly.dependsOn(copyWebapp).value,
assemblyMergeStrategy in assembly := {
case PathList(ps @ _*) if ps.last endsWith "io.netty.versions.properties" => MergeStrategy.first
case PathList(ps @ _*) if ps.last endsWith "pom.properties" => MergeStrategy.first
case PathList(ps @ _*) if ps.last endsWith "io.netty.versions.properties" => MergeStrategy.first
case PathList(ps @ _*) if ps.last endsWith "pom.properties" => MergeStrategy.first
case PathList(ps @ _*) if ps.last endsWith "scala-collection-compat.properties" => MergeStrategy.first
case x =>
val oldStrategy = (assemblyMergeStrategy in assembly).value
oldStrategy(x)
Expand Down

0 comments on commit 657355f

Please sign in to comment.