11lazy val commonSettings = Seq (
2+ resolvers += Resolver .sonatypeRepo(" snapshots" ),
23 organization := " co.fs2" ,
34 scalaVersion := " 2.12.6" ,
45 scalacOptions ++= Seq (
@@ -24,9 +25,34 @@ lazy val commonSettings = Seq(
2425 scalacOptions in (Test , console) := (scalacOptions in (Compile , console)).value
2526)
2627
27- lazy val root = project.in(file( " . " )).settings(commonSettings).aggregate(zeroNine, zeroTen, oneZero )
28+ addCommandAlias( " benchmark " , s " jmh:run -rf json -t 2 -wi 5 -i 5 " )
2829
29- lazy val zeroNine = project.in(file(" 0.9 " )).settings(commonSettings)
30- lazy val zeroTen = project.in(file( " 0.10 " )). settings(commonSettings)
31- lazy val oneZero = project.in(file( " 1.0 " )).settings(commonSettings )
30+ lazy val root = project.in(file(" . " )).
31+ settings(commonSettings).
32+ aggregate(zeroNine, zeroTen, oneZero )
3233
34+ lazy val common = project.in(file(" common" )).settings(commonSettings)
35+
36+ lazy val zeroNine = project.in(file(" 0.9" )).
37+ enablePlugins(JmhPlugin ).
38+ dependsOn(common).
39+ settings(commonSettings).
40+ settings(
41+ libraryDependencies += " co.fs2" %% " fs2-io" % " 0.9.6"
42+ )
43+
44+ lazy val zeroTen = project.in(file(" 0.10" )).
45+ enablePlugins(JmhPlugin ).
46+ dependsOn(common).
47+ settings(commonSettings).
48+ settings(
49+ libraryDependencies += " co.fs2" %% " fs2-io" % " 0.10.5"
50+ )
51+
52+ lazy val oneZero = project.in(file(" 1.0" )).
53+ enablePlugins(JmhPlugin ).
54+ dependsOn(common).
55+ settings(commonSettings).
56+ settings(
57+ libraryDependencies += " co.fs2" %% " fs2-io" % " 1.0.0-SNAPSHOT"
58+ )
0 commit comments