-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
52 lines (38 loc) · 1.81 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import sbt.Attributed
name := "ZKTreasury-client"
version := "0.2.1"
lazy val `distributedsigsclient` = (project in file(".")).enablePlugins(PlayScala)
resolvers += "scalaz-bintray" at "https://dl.bintray.com/scalaz/releases"
resolvers += "Akka Snapshot Repository" at "https://repo.akka.io/snapshots/"
scalaVersion := "2.12.2"
libraryDependencies ++= Seq(ehcache, ws, specs2 % Test, guice)
libraryDependencies ++= Seq(
"org.scalaj" %% "scalaj-http" % "2.4.2",
"com.h2database" % "h2" % "1.4.200",
"com.typesafe.play" %% "play-slick" % "4.0.0",
"com.typesafe.play" %% "play-slick-evolutions" % "4.0.0",
"org.scalatestplus.play" %% "scalatestplus-play" % "5.0.0" % Test,
"com.github.tomakehurst" % "wiremock-standalone" % "2.27.1" % Test
)
assemblyJarName in assembly := s"${name.value}-${version.value}.jar"
unmanagedResourceDirectories in Test <+= baseDirectory(_ / "target/web/public/test")
assemblyMergeStrategy in assembly := {
case "logback.xml" => MergeStrategy.first
case PathList("META-INF", _@_*) => MergeStrategy.discard
case _ => MergeStrategy.first
}
fullClasspath in assembly += Attributed.blank(PlayKeys.playPackageAssets.value)
assemblyMergeStrategy in assembly := {
case PathList("reference.conf") => MergeStrategy.concat
case manifest if manifest.contains("MANIFEST.MF") =>
// We don't need the manifest files since sbt-assembly will create one with the given settings
MergeStrategy.discard
case referenceOverrides if referenceOverrides.contains("reference-overrides.conf") =>
// Keep the content for all reference-overrides.conf files
MergeStrategy.concat
case x =>
// For all the other files, use the default sbt-assembly merge strategy
val oldStrategy = (assemblyMergeStrategy in assembly).value
oldStrategy(x)
}
javaOptions in Test += "-Dconfig.file=conf/test.conf"