-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
105 lines (99 loc) · 3.48 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
import sbtb.koolaid.dependencies._
addCommandAlias("run-twitter", "; project twitter-server ; run")
addCommandAlias("run-scala-js", "; project scala-js ; ~fastOptJS")
lazy val `sbtb-koolaid-root` = (project in file("."))
.aggregate(`twitter-client`, free, `scala-js`, `twitter-server`)
.dependsOn(`twitter-client`, free, `scala-js`, `twitter-server`)
.enablePlugins(SbtKoan)
.settings(sbtb.koolaid.publish.ignoreSettings())
.settings(sbtb.koolaid.build.settings())
.settings(sbtb.koolaid.koan.settings())
.settings(Seq(
name := "drinking the free kool aid",
moduleName := "sbtb-koolaid"
))
lazy val free = (project in file("free"))
.aggregate(`twitter-client`)
.dependsOn(`twitter-client`)
.enablePlugins(ScalaJSPlugin)
.settings(sbtb.koolaid.publish.settings())
.settings(sbtb.koolaid.build.settings())
.settings(Seq(
name := "sbtb-koolaid-free",
moduleName := "free",
libraryDependencies ++= { Seq(
"com.chuusai" %%% "shapeless" % shapelessVersion,
"org.spire-math" %% "cats" % catsVersion,
"org.scalaz" %% "scalaz-core" % scalazVersion
) ++
unitTesting
}
))
lazy val `scala-js` = (project in file("scala-js"))
.aggregate(`twitter-client`, free)
.dependsOn(`twitter-client`, free)
.enablePlugins(ScalaJSPlugin)
.settings(sbtb.koolaid.publish.settings())
.settings(sbtb.koolaid.build.settings())
//.settings(workbenchSettings)
.settings(Seq(
name := "sbtb-koolaid-scala-js",
moduleName := "scala-js",
libraryDependencies ++= { Seq(
"com.chuusai" %%% "shapeless" % shapelessVersion,
"org.spire-math" %% "cats" % catsVersion,
"org.scala-js" %%% "scalajs-dom" % scalaJsDomVersion,
"com.lihaoyi" %%% "scalatags" % scalaTagsVersion,
"com.github.benhutchison" %%% "prickle" % prickleVersion,
"org.monifu" %%% "monifu" % monifuVersion
) ++
unitTesting
}
))
lazy val `twitter-client` = (project in file("twitter-client"))
.enablePlugins(ScalaJSPlugin)
.settings(sbtb.koolaid.publish.settings())
.settings(sbtb.koolaid.build.settings())
.settings(Seq(
name := "sbtb-koolaid-twitter-client",
moduleName := "twitter-client",
libraryDependencies ++= { Seq(
"com.chuusai" %% "shapeless" % shapelessVersion,
"org.spire-math" %% "cats" % catsVersion,
"org.scala-js" %%% "scalajs-dom" % scalaJsDomVersion,
"com.lihaoyi" %%% "scalatags" % scalaTagsVersion,
"com.lihaoyi" %%% "autowire" % autowireVersion,
"com.lihaoyi" %%% "upickle" % uPickleVersion,
"com.github.benhutchison" %%% "prickle" % prickleVersion
) ++
joda ++
hocon ++
akka ++
rxScala ++
unitTesting
}
))
lazy val `twitter-server` = (project in file("twitter-server"))
.aggregate(`twitter-client`)
.dependsOn(`twitter-client`)
.disablePlugins(ScalaJSPlugin)
.settings(sbtb.koolaid.publish.settings())
.settings(sbtb.koolaid.build.settings())
.settings(Seq(
name := "sbtb-koolaid-twitter-server",
moduleName := "twitter-server",
libraryDependencies ++= { Seq(
"com.chuusai" %% "shapeless" % shapelessVersion,
"org.spire-math" %% "cats" % catsVersion,
"com.lihaoyi" %% "autowire" % autowireVersion,
"com.lihaoyi" %% "upickle" % uPickleVersion,
"com.github.benhutchison" %% "prickle" % prickleVersion,
"org.twitter4j" % "twitter4j-core" % twitter4jVersion
) ++
joda ++
hocon ++
akka ++
rxScala ++
unitTesting
}
))