-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
69 lines (60 loc) · 1.75 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
import sbt.Keys._
import scalariform.formatter.preferences._
name := "fetch"
version := "0.0.0"
scalaVersion := "2.11.6"
val commonSettings = scalariformSettings ++ Seq(
version := "0.0.0",
scalaVersion := "2.11.6",
resolvers += "bintray/non" at "http://dl.bintray.com/non/maven",
libraryDependencies ++= Seq(
CompileDeps.scalazCore,
TestDeps.scalatest % "test",
TestDeps.scalazScalacheck % "test",
TestDeps.scalacheck % "test",
TestDeps.mockito % "test"
),
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8",
"-feature",//para poder ver feature warnings al compilar
"-language:postfixOps", //para cosas como '5 seconds'
"-language:implicitConversions",
"-language:existentials",
"-language:higherKinds",
"-unchecked",
"-Xfatal-warnings",
"-Xlint",
"-Yno-adapted-args",
"-Ywarn-dead-code", // N.B. doesn't work well with the ??? hole
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-Xfuture"
),
addCompilerPlugin(CompileDeps.kindProjector),
ScalariformKeys.preferences := ScalariformKeys.preferences.value
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(AlignParameters, true)
)
lazy val core = Project(
id = "fetch-core",
base = file("./core")
).settings(
commonSettings: _*
)
lazy val examples = Project(
id = "fetch-examples",
base = file("./examples")
).settings(
commonSettings: _*
).dependsOn(core)
lazy val tests = Project(
id = "fetch-tests",
base = file("./tests")
).settings(
commonSettings: _*
).dependsOn(core, examples)
lazy val root = Project(
id = "fetch",
base = file(".")
).aggregate(core, examples, tests)