-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
61 lines (47 loc) · 1.87 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
name := "PiHomeScreen"
version := "0.1"
scalaVersion := "2.12.9"
// Add dependency on ScalaFX library
libraryDependencies += "org.scalafx" %% "scalafx" % "12.0.2-R18"
// Determine OS version of JavaFX binaries
lazy val osName = System.getProperty("os.name") match {
case n if n.startsWith("Linux") => "linux"
case n if n.startsWith("Mac") => "mac"
case n if n.startsWith("Windows") => "win"
case _ => throw new Exception("Unknown platform!")
}
// Add dependency on JavaFX libraries, OS dependent
//lazy val javaFXModules = Seq("base", "controls", "fxml", "graphics", "media", "swing", "web")
lazy val javaFXModules = Seq("base", "controls", "fxml")
libraryDependencies ++= javaFXModules.map( m =>
"org.openjfx" % s"javafx-$m" % "12.0.2" classifier osName
)
// Scalafxml
libraryDependencies += "org.scalafx" %% "scalafxml-core-sfx8" % "0.5"
//TODO: Add -Ymacro-annotations in scala 12.13.x and higher
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full)
// HTTP Client
libraryDependencies += "com.softwaremill.sttp.client" %% "core" % "2.0.6"
//CSV
libraryDependencies += "com.github.tototoshi" %% "scala-csv" % "1.3.6"
//Better Files
libraryDependencies += "com.github.pathikrit" %% "better-files" % "3.9.1"
// JSON
val circeVersion = "0.13.0"
libraryDependencies ++= Seq(
"io.circe" %% "circe-core",
"io.circe" %% "circe-generic",
"io.circe" %% "circe-parser"
).map(_ % circeVersion)
// JAR Assembly
assemblyMergeStrategy in assembly := {
case PathList("META-INF", "MANIFEST.MF") => MergeStrategy.discard
case _ => MergeStrategy.first
}
// Config Factory
libraryDependencies += "com.typesafe" % "config" % "1.4.0"
// Logger
libraryDependencies += "org.apache.logging.log4j" % "log4j-core" % "2.13.1"
libraryDependencies += "org.apache.logging.log4j" %% "log4j-api-scala" % "11.0"
// Alias
addCommandAlias("generate-jar", ";clean;assembly")