-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
48 lines (42 loc) · 1.88 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
name := "scotland-yard"
organization := "de.htwg.se"
version := "0.1.0"
scalaVersion := "2.13.0"
val AkkaVersion = "2.6.8"
val AkkaHttpVersion = "10.2.4"
val commonDependencies = Seq(
"org.scalatest" %% "scalatest" % "3.0.8",
"org.scalatest" %% "scalatest" % "3.0.8" % "test",
"org.scala-lang.modules" %% "scala-swing" % "2.1.1",
"net.codingwell" %% "scala-guice" % "4.2.6",
"org.scala-lang.modules" %% "scala-xml" % "1.2.0",
"com.typesafe.akka" %% "akka-actor-typed" % AkkaVersion,
"com.typesafe.akka" %% "akka-stream" % AkkaVersion,
"com.typesafe.akka" %% "akka-http" % AkkaHttpVersion,
"com.typesafe.akka" %% "akka-http-spray-json" % AkkaHttpVersion
)
parallelExecution in Test := false
coverageExcludedPackages := "<empty>;.*aview.*;.*ScotlandYard;.*controllerMockImpl.*;.*fileIOMockImpl.*;.*gameInitializerMockImpl.*;.*ScotlandYardModule.scala;.*restBaseImpl.*"
coverageEnabled.in(Test, test) := true
ThisBuild / trackInternalDependencies := TrackLevel.TrackIfMissing
lazy val gameInitializerProject = (project in file("GameInitializer")).settings(
name := "gameInitializerProject",
)
lazy val modelProject = (project in file("Model")).settings(
name := "modelProject",
)
lazy val persistenceProject = (project in file("Persistence")).settings(
name := "persistenceProject",
)
lazy val model = ProjectRef(uri("https://github.com/tim-koehler/ScotlandYard.git"), "modelProject")
lazy val scotlandYardBase = (project in file(".")).dependsOn(model).aggregate(model).settings(
name := "ScotlandYard",
libraryDependencies ++= commonDependencies,
assemblyMergeStrategy in assembly := {
case PathList("reference.conf") => MergeStrategy.concat
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
case x => MergeStrategy.first
},
assemblyJarName in assembly := "ScotlandYard.jar",
mainClass in assembly := Some("de.htwg.se.scotlandyard.ScotlandYard")
)