-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
87 lines (68 loc) · 2.76 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
val scala3Version = "3.1.1"
val AkkaVersion = "2.6.19"
val AkkaHttpVersion = "10.2.9"
val circeVersion = "0.14.1"
javacOptions := Seq("javafx.platform=x11")
scalacOptions ++= Seq(
"-explain",
"-explain-types"
)
lazy val options = Seq(
scalaVersion := scala3Version,
resolvers += "jitpack" at "https://jitpack.io",
//Testing
libraryDependencies += "org.scalactic" %% "scalactic" % "3.2.12",
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.12" % "test",
//GUI- Swing/FX
libraryDependencies += "org.scalafx" %% "scalafx" % "17.0.1-R26",
//Dependency Injection
libraryDependencies += "com.google.inject" % "guice" % "5.1.0",
libraryDependencies += ("net.codingwell" %% "scala-guice" % "5.0.1").cross(CrossVersion.for3Use2_13),
libraryDependencies ++= Seq(
("com.typesafe.akka" %% "akka-actor-typed" % AkkaVersion).cross(CrossVersion.for3Use2_13),
("com.typesafe.akka" %% "akka-stream" % AkkaVersion).cross(CrossVersion.for3Use2_13),
("com.typesafe.akka" %% "akka-http" % AkkaHttpVersion).cross(CrossVersion.for3Use2_13)
),
libraryDependencies ++= Seq(
("io.circe" %% "circe-core"% circeVersion).cross(CrossVersion.for3Use2_13),
("io.circe" %% "circe-generic"% circeVersion).cross(CrossVersion.for3Use2_13),
("io.circe" %% "circe-parser"% circeVersion).cross(CrossVersion.for3Use2_13)
),
//Database
libraryDependencies += "org.slf4j" % "slf4j-nop" % "2.0.0-alpha7",
libraryDependencies += ("com.github.slick.slick" % "slick_3" % "nafg~dottyquery-SNAPSHOT") ,
libraryDependencies += "org.postgresql" % "postgresql" % "42.3.4",
//FileIO
//FileIO
libraryDependencies += "org.scala-lang.modules" %% "scala-xml" % "2.0.1",
libraryDependencies += "com.typesafe.play" %% "play-json" % "2.10.0-RC5",
jacocoCoverallsServiceName := "github-actions",
jacocoCoverallsBranch := sys.env.get("CI_BRANCH"),
jacocoCoverallsPullRequest := sys.env.get("GITHUB_EVENT_NAME"),
jacocoCoverallsRepoToken := sys.env.get("COVERALLS_REPO_TOKEN"),
jacocoExcludes in Test := Seq(
"maumau.aview.*"
),
libraryDependencies ++= {
lazy val osName = System.getProperty("os.name") match {
case n if n.startsWith("Linux") => "linux-aarch64"
case n if n.startsWith("Mac") => "mac-aarch64"
case n if n.startsWith("Windows") => "win"
case _ => throw new Exception("Unknown platform!")
}
Seq("base", "controls", "fxml", "graphics", "media", "swing", "web")
.map( m=> "org.openjfx" % s"javafx-$m" % "17.0.1" classifier osName)
}
)
lazy val persistence = (project in file("Persistence"))
.settings(
name := "Maumau-Persistence",
options
)
lazy val root = project
.in(file("."))
.settings(
name := "Maumau",
version := "1.6",
options
).enablePlugins(JacocoCoverallsPlugin)