-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
47 lines (41 loc) · 1.42 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
val libVersion = "0.1.0"
val utilVersion = "6.23.0"
val finagleVersion = "6.24.0"
val sharedSettings = Seq(
version := libVersion,
organization := "com.twitter",
scalaVersion := "2.11.5",
crossScalaVersions := Seq("2.10.4", "2.11.5"),
libraryDependencies ++= Seq(
"com.twitter" %% "util-core" % utilVersion,
"org.scalatest" %% "scalatest" % "2.2.3" % "test",
"junit" % "junit" % "4.10" % "test"
),
scalacOptions ++= Seq("-deprecation")
)
lazy val webbing = project.in(file("."))
.settings(moduleName := "webbing")
.settings(sharedSettings: _*)
.settings(unidocSettings: _*)
.settings {
import UnidocKeys._
unidocProjectFilter in (ScalaUnidoc, unidoc) := inAnyProject -- inProjects(example)
}.aggregate(route, routeFinagleHttp, example)
lazy val route = project
.settings(moduleName := "webbing-route")
.settings(sharedSettings: _*)
lazy val routeFinagleHttp = project.in(file("route-finagle-http"))
.settings(moduleName := "webbing-route-finagle-http")
.settings(sharedSettings: _*)
.settings(
libraryDependencies ++= Seq(
"commons-io" % "commons-io" % "2.4",
"com.twitter" %% "finagle-http" % "6.24.0"
)
).dependsOn(route)
lazy val example = project
.settings(moduleName := "webbing-example")
.settings(
libraryDependencies += "com.twitter" %% "twitter-server" % "1.9.0",
resolvers += "twitter-repo" at "http://maven.twttr.com"
).dependsOn(routeFinagleHttp)