-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
39 lines (32 loc) · 1.32 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
import sbtcrossproject.{crossProject, CrossType}
name := "ScalaJs Shared"
lazy val frontEnd = (project in file("front-end"))
.enablePlugins(ScalaJSPlugin)
.settings(
scalaVersion := "2.12.6",
scalaJSUseMainModuleInitializer := true,
libraryDependencies ++= Seq(
"org.scala-js" %%% "scalajs-dom" % "0.9.2",
"com.typesafe.play" %%% "play-json" % "2.6.0",
)
) dependsOn(sharedJS)
lazy val backEnd = (project in file("back-end"))
.settings(
resolvers += Resolver.bintrayRepo("hseeberger", "maven"),
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % "2.5.11",
"com.typesafe.akka" %% "akka-http" % "10.1.0",
"de.heikoseeberger" %% "akka-http-circe" % "1.20.0",
"de.heikoseeberger" %% "akka-http-play-json" % "1.20.0",
"com.typesafe.akka" %% "akka-slf4j" % "2.5.11",
)
) dependsOn(sharedJVM)
lazy val shared = crossProject(JSPlatform, JVMPlatform)
.crossType(CrossType.Pure)
.settings(
libraryDependencies ++= Seq(
"com.typesafe.play" %% "play-json" % "2.6.0",
)
)
lazy val sharedJVM = shared.jvm
lazy val sharedJS = shared.js