-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
87 lines (82 loc) · 3.85 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
ThisBuild / organization := "de.htwg.se"
ThisBuild / version := "1.0"
ThisBuild / scalaVersion := "2.13.2"
ThisBuild / scalacOptions := Seq("-unchecked", "-deprecation")
ThisBuild / trapExit := false
ThisBuild / libraryDependencies := Seq(
"org.scalactic" %% "scalactic" % "3.1.1",
"org.scalatest" %% "scalatest" % "3.1.1" % "test",
"com.google.inject" % "guice" % "4.2.3",
"net.codingwell" %% "scala-guice" % "4.2.7",
"com.typesafe.play" %% "play-json" % "2.9.0",
"com.google.inject.extensions" % "guice-assistedinject" % "4.2.3",
"com.typesafe.akka" %% "akka-http" % "10.1.12",
"com.typesafe.akka" %% "akka-stream" % "2.6.5",
"com.typesafe.akka" %% "akka-stream-testkit" % "2.6.5",
"com.typesafe.akka" %% "akka-http-testkit" % "10.1.12",
"com.typesafe.slick" %% "slick" % "3.3.2",
"org.slf4j" % "slf4j-nop" % "1.7.30",
"com.typesafe.slick" %% "slick-hikaricp" % "3.3.2",
"mysql" % "mysql-connector-java" % "8.0.20",
"org.mongodb.scala" %% "mongo-scala-driver" % "4.0.4"
)
lazy val OthelloMainModule = project.in(file("."))
.settings(
name := "Othello In Scala",
assemblyJarName in assembly := "Othello.jar",
test in assembly := {},
libraryDependencies ++= Seq(
"org.scala-lang.modules" %% "scala-swing" % "2.1.1",
"org.scala-lang.modules" %% "scala-xml" % "1.3.0",
),
assemblyMergeStrategy in assembly := {
case PathList(ps @ _*) if ps.last endsWith ".proto" => MergeStrategy.first
case PathList("javax", "servlet", _*) => MergeStrategy.first
case PathList(ps @ _*) if ps.last endsWith ".html" => MergeStrategy.first
case "application.conf" => MergeStrategy.concat
case "module-info.class" => MergeStrategy.concat
case "CHANGELOG.adoc" => MergeStrategy.concat
case PathList("META-INF", "MANIFEST.MF") => MergeStrategy.first
case x =>
val oldStrategy = (assemblyMergeStrategy in assembly).value
oldStrategy(x)
}
)
.aggregate(UserModule, BoardModule).dependsOn(UserModule, BoardModule)
lazy val UserModule = project
.settings(
name := "UserModule",
assemblyJarName in assembly := "UserModule.jar",
test in assembly := {},
assemblyMergeStrategy in assembly := {
case PathList(ps @ _*) if ps.last endsWith ".proto" => MergeStrategy.first
case PathList("javax", "servlet", _*) => MergeStrategy.first
case PathList(ps @ _*) if ps.last endsWith ".html" => MergeStrategy.first
case "application.conf" => MergeStrategy.concat
case "module-info.class" => MergeStrategy.concat
case "CHANGELOG.adoc" => MergeStrategy.concat
case PathList("META-INF", "MANIFEST.MF") => MergeStrategy.first
case x =>
val oldStrategy = (assemblyMergeStrategy in assembly).value
oldStrategy(x)
}
)
lazy val BoardModule = project
.settings(
name := "BoardModule",
assemblyJarName in assembly := "BoardModule.jar",
test in assembly := {},
assemblyMergeStrategy in assembly := {
case PathList(ps @ _*) if ps.last endsWith ".proto" => MergeStrategy.first
case PathList("javax", "servlet", _*) => MergeStrategy.first
case PathList(ps @ _*) if ps.last endsWith ".html" => MergeStrategy.first
case "application.conf" => MergeStrategy.concat
case "module-info.class" => MergeStrategy.concat
case "CHANGELOG.adoc" => MergeStrategy.concat
case PathList("META-INF", "MANIFEST.MF") => MergeStrategy.first
case x =>
val oldStrategy = (assemblyMergeStrategy in assembly).value
oldStrategy(x)
}
)
ThisBuild / coverageExcludedPackages := ".*aview.gui.*"