-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
40 lines (39 loc) · 1.44 KB
/
Copy pathbuild.sbt
File metadata and controls
40 lines (39 loc) · 1.44 KB
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
enablePlugins(JmhPlugin)
addCommandAlias("bench", "Jmh/run")
lazy val profile = inputKey[Unit]("Run visual Vm")
profile := {
(Jmh / run).partialInput(" -bm ss -r 0 -f 1 -i 1 -w 0 -wi 0 -tu us -prof jfr")
.evaluated
import scala.sys.process.*
"visualvm" !
}
lazy val root = project.in(file(".")).settings(
name := "Advent of Code 2023",
version := "0.1.0-SNAPSHOT",
scalaVersion := "3.3.1",
scalacOptions ++= Seq(
"-deprecation",
"-feature",
"-indent",
"-new-syntax",
"-Wunused:all",
"-Wvalue-discard",
),
fork := true,
Global / cancelable := true,
Global / onChangedBuildSource := ReloadOnSourceChanges,
Test / testOptions ++=
Seq(Tests.Argument("-oD"), Tests.Argument("-W", "10", "10")),
libraryDependencies ++= Seq(
"com.lihaoyi" %% "pprint" % "0.7.0",
"com.lihaoyi" %% "sourcecode" % "0.3.1",
"org.scalatest" %% "scalatest" % "3.2.17" % "test",
"org.scala-lang.modules" %% "scala-parallel-collections" % "1.0.4",
"org.scalanlp" %% "breeze" % "2.1.0",
),
Jmh / sourceDirectory := (Test / sourceDirectory).value,
Jmh / classDirectory := (Test / classDirectory).value,
Jmh / dependencyClasspath := (Test / dependencyClasspath).value,
Jmh / compile := (Jmh / compile).dependsOn(Test / compile).value,
Jmh / run := (Jmh / run).dependsOn(Jmh / compile).evaluated,
)