I am using sbtassembly from https://github.com/sbt/sbt-assembly using this merge strategy:
mergeStrategy in assembly <<= (mergeStrategy in assembly) { (old) =>
{
case PathList("javax", "servlet", xs @ _*) => MergeStrategy.first
case PathList(ps @ _*) if ps.last endsWith ".html" => MergeStrategy.first
case "application.conf" => MergeStrategy.concat
case "unwanted.txt" => MergeStrategy.discard
case x => old(x)
}
}
For some reason, my static content is not included in the executable jar, but my web services are working fine (so it works).
How can I include index.html and javascript files?
source
share