-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
36 lines (31 loc) · 1.54 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
val settings = new {
val scalaVersion = "3.3.4"
val scala2Version = "2.13.14" // TODO: Switch reflection to Scala 3, if possible
val libraryDependencies = Seq(
"com.lihaoyi" %% "ujson" % "4.0.2",
"org.apache.commons" % "commons-math3" % "3.6.1",
"org.apache.commons" % "commons-text" % "1.11.0",
"org.jgrapht" % "jgrapht-core" % "1.5.2",
"org.scala-lang" % "scala-reflect" % scala2Version,
"org.scala-lang" % "scala-compiler" % scala2Version,
"org.scala-lang.modules" %% "scala-parallel-collections" % "1.0.4",
"org.scala-lang.modules" %% "scala-parser-combinators" % "2.4.0",
"org.scalatest" %% "scalatest" % "3.2.19" % Test,
"tools.aqua" % "z3-turnkey" % "4.13.0" // Pulls in com.microsoft.z3
)
}
// Root options
libraryDependencies ++= settings.libraryDependencies
scalacOptions ++= Seq("-deprecation", "-no-indent", "-Wunused:imports", "-Wunused:privates", "-Wunused:locals")
scalaVersion := settings.scalaVersion
// Compile options
Compile / mainClass := Some("io.github.aaronreidsmith.AdventOfCode")
Compile / compileOrder := CompileOrder.JavaThenScala
// Run options
run / fork := true
run / javaOptions := Seq("-Xms1G", "-Xmx8G")
run / outputStrategy := Some(StdoutOutput)
// Test options
Test / envVars := Map("IS_TEST" -> "true")
Test / fork := true
Test / testForkedParallel := true