This repository has been archived by the owner on Aug 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
58 lines (52 loc) · 1.6 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
lazy val commonSettings = Seq(
resolvers += Resolver.sonatypeRepo("snapshots"),
organization := "co.fs2",
scalaVersion := "2.12.6",
scalacOptions ++= Seq(
"-feature",
"-deprecation",
"-language:implicitConversions",
"-language:higherKinds",
"-language:existentials",
"-language:postfixOps",
"-Ypartial-unification",
"-Xlint",
"-Xfatal-warnings",
"-Yno-adapted-args",
"-Ywarn-value-discard",
"-Ywarn-unused-import"
),
scalacOptions in (Compile, console) ~= {
_.filterNot("-Ywarn-unused-import" == _)
.filterNot("-Xlint" == _)
.filterNot("-Xfatal-warnings" == _)
},
scalacOptions in (Compile, console) += "-Ydelambdafy:inline",
scalacOptions in (Test, console) := (scalacOptions in (Compile, console)).value
)
addCommandAlias("benchmark", s"jmh:run -rf json -t 2 -wi 5 -i 5")
lazy val root = project.in(file(".")).
settings(commonSettings).
aggregate(zeroNine, zeroTen, oneZero)
lazy val common = project.in(file("common")).settings(commonSettings)
lazy val zeroNine = project.in(file("0.9")).
enablePlugins(JmhPlugin).
dependsOn(common).
settings(commonSettings).
settings(
libraryDependencies += "co.fs2" %% "fs2-io" % "0.9.6"
)
lazy val zeroTen = project.in(file("0.10")).
enablePlugins(JmhPlugin).
dependsOn(common).
settings(commonSettings).
settings(
libraryDependencies += "co.fs2" %% "fs2-io" % "0.10.5"
)
lazy val oneZero = project.in(file("1.0")).
enablePlugins(JmhPlugin).
dependsOn(common).
settings(commonSettings).
settings(
libraryDependencies += "co.fs2" %% "fs2-io" % "1.0.0-SNAPSHOT"
)