-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
65 lines (58 loc) · 1.78 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
resolvers ++= Seq(
Resolver.mavenLocal,
Resolver.sonatypeRepo("releases"),
Resolver.sonatypeRepo("snapshots"),
Resolver.jcenterRepo
)
inThisBuild(
List(
scalaVersion := "2.13.3",
crossScalaVersions := Seq("2.12.12", "2.13.3"),
organization := "crew.hot",
homepage := Some(url("https://github.com/hot-crew/zio-benchmarks")),
startYear := Some(2020),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"<nickName>",
"<givenName>",
"<email>",
url("https://github.com/<developer>")
)
),
scmInfo := Some(
ScmInfo(url("https://github.com/hot-crew/zio-benchmarks"), "scm:git@github.com:hot-crew/zio-benchmarks.git")
)
)
)
lazy val commonSettings = Seq(
// Refine scalac params from tpolecat
scalacOptions --= Seq(
"-Xfatal-warnings"
),
name := "bench",
version := "0.0.1"
)
lazy val zioDeps = libraryDependencies ++= Seq(
"dev.zio" %% "zio" % Version.zio,
"dev.zio" %% "zio-test" % Version.zio % "test",
"dev.zio" %% "zio-test-sbt" % Version.zio % "test"
)
lazy val root = (project in file("."))
.enablePlugins(JmhPlugin)
.settings(
maxErrors := 3,
commonSettings,
zioDeps,
testFrameworks := Seq(new TestFramework("zio.test.sbt.ZTestFramework"))
)
// Aliases
addCommandAlias("rel", "reload")
addCommandAlias("com", "all compile test:compile it:compile")
addCommandAlias("fix", "all compile:scalafix test:scalafix")
addCommandAlias("fmt", "all scalafmtSbt scalafmtAll")
scalafixDependencies in ThisBuild += "com.nequissimus" %% "sort-imports" % "0.5.4"
// Benchmarks
// Parameters
// iterations, warmup, forks, threads
addCommandAlias("fut0", "jmh:run -i 1 -wi 1 -f1 -t4 .*FutureFiberSimpleBenchmark")