-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
30 lines (29 loc) · 1.36 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
val scala3Version = "3.3.0"
lazy val root = project
.in(file("."))
.settings(
name := "tictactoe",
version := "0.1.0-SNAPSHOT",
scalaVersion := scala3Version,
crossScalaVersions ++= Seq("2.13.5", "3.0.2"),
libraryDependencies += "org.scalactic" %% "scalactic" % "3.2.10",
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.10" % "test",
libraryDependencies += "org.scalafx" %% "scalafx" % "16.0.0-R24",
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)
},
libraryDependencies += ("org.scala-lang.modules" %% "scala-swing" % "3.0.0").cross(CrossVersion.for3Use2_13),
jacocoCoverallsServiceName := "github-actions",
jacocoCoverallsBranch := sys.env.get("CI_BRANCH"),
jacocoCoverallsPullRequest := sys.env.get("GITHUB_EVENT_NAME"),
jacocoCoverallsRepoToken := sys.env.get("COVERALLS_REPO_TOKEN")
)
.enablePlugins(JacocoCoverallsPlugin)