-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
61 lines (52 loc) · 1.92 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
import com.lightbend.lagom.core.LagomVersion
enablePlugins(DockerComposePlugin)
dockerImageCreationTask := (Docker / publishLocal in `note`).value
organization in ThisBuild := "com.sharonsyra"
// the Scala version that will be used for cross-compiled libraries
scalaVersion in ThisBuild := "2.13.1"
val lagomPb = "io.superflat" %% "lagompb-core" % "0.4.0"
val macwire = "com.softwaremill.macwire" %% "macros" % "2.3.3" % "provided"
val scalaTest = "org.scalatest" %% "scalatest" % "3.0.8" % Test
val lagomScaladslAkkaDiscovery = "com.lightbend.lagom" %% "lagom-scaladsl-akka-discovery-service-locator" % LagomVersion.current
val akkaDiscovery = "com.lightbend.akka.discovery" %% "akka-discovery-kubernetes-api" % "1.0.5"
val akkaServiceLocator = "com.lightbend.lagom" %% "lagom-scaladsl-akka-discovery-service-locator" % LagomVersion.current
lagomCassandraEnabled in ThisBuild := false
lazy val `note-taking-service` = (project in file("."))
.aggregate(
`note-api`,
`note`,
`note-common`
)
.settings(
publishArtifact := false,
skip in publish := true
)
lazy val `note-common` = (project in file("note-common"))
.enablePlugins(ProtoRuntime)
.settings(
name := "note-common",
PB.protoSources in Compile := Seq(file("note-common/src/main/protobuf")),
PB.targets in Compile := Seq(scalapb.gen() -> (sourceManaged in Compile).value)
)
lazy val `note-api` = (project in file("note-api"))
.enablePlugins(LagomAkka)
.enablePlugins(LagomApi)
.settings(
name := "note-api",
libraryDependencies ++= Seq(
lagomScaladslApi,
lagomPb
)
)
.dependsOn(`note-common`)
lazy val `note` = (project in file("note"))
.enablePlugins(LagomScala, JavaAgent)
.enablePlugins(JavaAppPackaging)
.enablePlugins(PlayAkkaHttp2Support)
.enablePlugins(LagomImpl)
.enablePlugins(LagomAkka)
.settings(
name := "note"
)
.settings(lagomForkedTestSettings)
.dependsOn(`note-api`, `note-common`)