scala.MatchError when creating fat jar using sbt assembly
<p>I am trying to create a jar file for my project. I am using sbt assembly command to generate one.</p>

<p>But getting error when it starts merging files:</p>

<blockquote>
  <p>scala.MatchError:
  spray\http\parser\ProtocolParameterRules$$anonfun$DeltaSeconds$1.class
  (of class java.lang.String)</p>
</blockquote>

<p>My build.sbt looks like this:</p>

<pre><code>lazy val commonSettings = Seq(
  name := "SampleSpray",
  version := "1.0",
  scalaVersion := "2.11.7",
  organization := "com.test"

)
mainClass in assembly := Some("com.example.Boot")

lazy val root = (project in file(".")).
  settings(commonSettings: _*).
  settings(
    name := "test",
    resolvers += "spray repo" at "http://repo.spray.io",
    libraryDependencies ++= {
            val akkaV = "2.3.9"
            val sprayV = "1.3.3"
            Seq(
              "io.spray"            %%  "spray-can"     % sprayV,
              "io.spray"            %%  "spray-routing" % sprayV,
              "io.spray"            %%  "spray-json"    % "1.3.2",
              "io.spray"            %%  "spray-testkit" % sprayV  % "test",
              "com.typesafe.akka"   %%  "akka-actor"    % akkaV,
              "com.typesafe.akka"   %%  "akka-testkit"  % akkaV   % "test",
              "org.specs2"          %%  "specs2-core"   % "2.3.11" % "test",
              "com.sksamuel.elastic4s" %% "elastic4s-core" % "2.1.0",
              "com.sksamuel.elastic4s" %% "elastic4s-jackson" % "2.1.0",
              "net.liftweb" %% "lift-json" % "2.6+"
            )
  }
)


assemblyOption in assembly := (assemblyOption in assembly).value.copy(cacheUnzip = false)

assemblyMergeStrategy in assembly := {
  case "BaseDateTime.class"                            =&gt; MergeStrategy.first

}
</code></pre>

<p>Don't know why the error is coming.</p>