This repository has been archived by the owner on Feb 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 102
/
Copy pathbuild.sbt
67 lines (59 loc) · 1.69 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
organization in ThisBuild := "org.lightbend.lagom"
// the Scala version that will be used for cross-compiled libraries
scalaVersion in ThisBuild := "2.11.7"
lazy val registrationApi = project("registration-api")
.settings(
version := "1.0-SNAPSHOT",
libraryDependencies ++= Seq(
lagomJavadslApi,
lagomJavadslImmutables
)
)
lazy val registrationImpl = project("registration-impl")
.enablePlugins(LagomJava)
.settings(
version := "1.0-SNAPSHOT",
libraryDependencies ++= Seq(
lagomJavadslPersistence,
lagomJavadslPubSub,
lagomJavadslImmutables,
lagomJavadslTestKit
)
)
.settings(lagomForkedTestSettings: _*)
.dependsOn(registrationApi)
lazy val shippingApi = project("shipping-api")
.settings(
version := "1.0-SNAPSHOT",
libraryDependencies ++= Seq(
lagomJavadslApi,
lagomJavadslImmutables
)
)
lazy val shippingImpl = project("shipping-impl")
.enablePlugins(LagomJava)
.dependsOn(registrationApi)
.settings(
version := "1.0-SNAPSHOT",
libraryDependencies ++= Seq(
lagomJavadslPersistence,
lagomJavadslImmutables,
lagomJavadslTestKit
)
)
.settings(lagomForkedTestSettings: _*)
.dependsOn(shippingApi)
lazy val frontEnd = project("front-end")
.enablePlugins(PlayJava, LagomPlay)
.settings(
version := "1.0-SNAPSHOT",
routesGenerator := InjectedRoutesGenerator,
libraryDependencies ++= Seq(
"org.webjars" % "react" % "0.14.3",
"org.webjars" % "react-router" % "1.0.3",
"org.webjars" % "jquery" % "2.2.0",
"org.webjars" % "foundation" % "5.3.0"
),
ReactJsKeys.sourceMapInline := true
)
def project(id: String) = Project(id, base = file(id))