-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
29 lines (27 loc) · 1.04 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
ThisBuild / version := "0.1.0-SNAPSHOT"
ThisBuild / scalaVersion := "3.3.4"
val circeVersion = "0.14.10"
lazy val root = (project in file("."))
.settings(
name := "ScalaImgTool"
)
libraryDependencies += "org.scalafx" %% "scalafx" % "23.0.1-R34"
libraryDependencies += "com.softwaremill.sttp.client4" %% "core" % "4.0.0-M20"
libraryDependencies ++= Seq(
"io.circe" %% "circe-core",
"io.circe" %% "circe-generic",
"io.circe" %% "circe-parser"
).map(_ % circeVersion)
libraryDependencies += "com.lihaoyi" %% "os-lib" % "0.11.3"
libraryDependencies += "com.typesafe" % "config" % "1.4.3"
libraryDependencies ++= {
// 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!")
}
Seq("base", "controls", "fxml", "graphics", "media", "swing", "web")
.map(m => "org.openjfx" % s"javafx-$m" % "16" classifier osName)
}