forked from lihaoyi/scala-bench
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
25 lines (22 loc) · 851 Bytes
/
build.sbt
File metadata and controls
25 lines (22 loc) · 851 Bytes
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
val sharedSettings = Seq(
scalaVersion := "2.12.3"
)
val agent = project
.settings(
sharedSettings,
packageOptions in (Compile, packageBin) +=
Package.ManifestAttributes( "Premain-Class" -> "agent.Agent" )
)
val bench = project
.dependsOn(agent)
.settings(
sharedSettings,
fork in run := true,
libraryDependencies += "com.lihaoyi" %% "upickle" % "0.4.4",
libraryDependencies += "com.lihaoyi" %% "pprint" % "0.4.4",
//libraryDependencies += "com.lihaoyi" % "ammonite" % "1.0.2",
libraryDependencies += "com.lihaoyi" %% "ammonite-ops" % "1.0.2",
//libraryDependencies += "com.lihaoyi" % "ammonite" % "1.0.2" % "test" cross CrossVersion.full,
//libraryDependencies += "com.lihaoyi" % "ammonite_2.12.3" % "0.7.7",
javaOptions in run += ("-javaagent:" + (packageBin in (agent, Compile)).value)
)