-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
86 lines (76 loc) · 2.1 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
import sbtcrossproject.{crossProject, CrossType}
name := "bits root project"
scalacOptions in ThisBuild ++= Seq(
"-deprecation",
"-encoding", "utf8",
"-explaintypes",
"-feature",
"-language:existentials",
"-language:experimental.macros",
"-unchecked",
"-Xcheckinit",
"-Xfatal-warnings",
"-Xfuture",
"-Xlint:adapted-args",
"-Xlint:by-name-right-associative",
"-Xlint:constant",
"-Xlint:delayedinit-select",
"-Xlint:doc-detached",
"-Xlint:inaccessible",
"-Xlint:infer-any",
"-Xlint:missing-interpolator",
"-Xlint:nullary-override",
"-Xlint:nullary-unit",
"-Xlint:option-implicit",
"-Xlint:package-object-classes",
"-Xlint:poly-implicit-overload",
"-Xlint:private-shadow",
"-Xlint:stars-align",
"-Xlint:type-parameter-shadow",
"-Xlint:unsound-match",
"-Yno-adapted-args",
"-Ypartial-unification",
"-Ywarn-dead-code",
"-Ywarn-extra-implicit",
"-Ywarn-inaccessible",
"-Ywarn-infer-any",
"-Ywarn-nullary-override",
"-Ywarn-nullary-unit",
"-Ywarn-numeric-widen",
"-Ywarn-unused:implicits",
"-Ywarn-unused:imports",
"-Ywarn-unused:locals",
"-Ywarn-unused:params",
"-Ywarn-unused:patvars",
"-Ywarn-unused:privates",
"-Ywarn-value-discard")
scalacOptions in (Compile, console) ~= (
_.filterNot(Set(
"-Ywarn-unused:imports",
"-Xfatal-warnings")))
val ScalaVersion = "2.12.4"
val MonocleVersion = "1.5.0-cats-M1"
val Fs2Version = "0.10.0-M6"
val Http4sVersion = "0.18.0-M3"
val MongoVersion = "2.1.0"
val ScalatagsVersion = "0.6.7"
scalaVersion in ThisBuild := "2.12.4"
resolvers in ThisBuild ++= Seq(
Resolver.bintrayRepo("j-keck", "maven"),
Resolver.sonatypeRepo("snapshots")
)
libraryDependencies in ThisBuild ++= Seq(
"com.github.julien-truffaut" %%% "monocle-macro" % MonocleVersion,
"co.fs2" %%% "fs2-core" % Fs2Version
)
lazy val root = project.in(file("."))
.settings(skip in publish := true)
.aggregate(bitsJVM, bitsJS)
lazy val bits = crossProject(JSPlatform, JVMPlatform)
.crossType(CrossType.Pure)
.in(file("."))
.settings(
name := "bits"
)
lazy val bitsJVM = bits.jvm
lazy val bitsJS = bits.js