-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
39 lines (34 loc) · 1.15 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
import sbt.Project.projectToRef
lazy val scalaV = "2.11.7"
version := "1.0-SNAPSHOT"
lazy val server = (project in file("server"))
.enablePlugins(PlayScala)
.settings(
scalaVersion := scalaV,
scalaJSProjects := Seq(client),
pipelineStages := Seq(scalaJSProd, gzip),
routesGenerator := InjectedRoutesGenerator,
libraryDependencies ++= Seq(
jdbc,
"com.typesafe.akka" %% "akka-slf4j" % "2.4.1",
"com.vmunier" %% "play-scalajs-scripts" % "0.3.0",
"com.typesafe.akka" %% "akka-contrib" % "2.3.13",
"com.typesafe.akka" %% "akka-persistence" % "2.4.1"
)
)
.aggregate(projectToRef(client))
lazy val client = (project in file("client"))
.enablePlugins(ScalaJSPlugin, ScalaJSPlay)
.settings(
scalaVersion := scalaV,
persistLauncher in Compile := true
)
.dependsOn(d3cloud)
lazy val d3cloud = (project in file("scala-js-d3-cloud"))
.enablePlugins(ScalaJSPlugin)
.settings(
resolvers += Resolver.mavenLocal,
scalaVersion := scalaV,
libraryDependencies += "org.singlespaced" %%% "scalajs-d3" % "0.1.1",
jsDependencies += "org.webjars" % "d3-cloud" % "1.2.1" / "d3.layout.cloud.js"
)