-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
68 lines (60 loc) · 2.17 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
organization in ThisBuild := "com.gxhr"
version in ThisBuild := "0.1.2"
// the Scala version that will be used for cross-compiled libraries
scalaVersion in ThisBuild := "2.12.8"
val macwire = "com.softwaremill.macwire" %% "macros" % "2.3.0" % "provided"
val scalaTest = "org.scalatest" %% "scalatest" % "3.0.4" % Test
val akkaDiscoveryKubernetesApi = "com.lightbend.akka.discovery" %% "akka-discovery-kubernetes-api" % "1.0.0"
val awsS3 = "com.amazonaws" % "aws-java-sdk-s3" % "1.11.710"
val postgresDriver = "org.postgresql" % "postgresql" % "42.2.9"
lazy val `miniapp` = (project in file("."))
.aggregate(`miniapp-api`, `miniapp-impl`, `miniapp-stream-api`, `miniapp-stream-impl`)
lazy val `miniapp-api` = (project in file("miniapp-api"))
.settings(
libraryDependencies ++= Seq(
lagomScaladslApi
)
)
lazy val `miniapp-impl` = (project in file("miniapp-impl"))
.enablePlugins(LagomScala)
.settings(
libraryDependencies ++= Seq(
lagomScaladslPersistenceJdbc,
lagomScaladslPersistenceCassandra,
lagomScaladslKafkaBroker,
lagomScaladslTestKit,
macwire,
scalaTest,
lagomScaladslAkkaDiscovery,
akkaDiscoveryKubernetesApi,
awsS3,
postgresDriver
)
)
.settings(lagomForkedTestSettings)
.dependsOn(`miniapp-api`)
.settings(dockerExposedPorts := Seq(9000, 9001))
lazy val `miniapp-stream-api` = (project in file("miniapp-stream-api"))
.settings(
libraryDependencies ++= Seq(
lagomScaladslApi
)
)
lazy val `miniapp-stream-impl` = (project in file("miniapp-stream-impl"))
.enablePlugins(LagomScala)
.settings(
libraryDependencies ++= Seq(
lagomScaladslTestKit,
macwire,
scalaTest
)
)
.dependsOn(`miniapp-stream-api`, `miniapp-api`)
// kubernetes [dev,test,prod]
//lagomCassandraEnabled in ThisBuild := false
// this works only in dev k8s
//lagomUnmanagedServices in ThisBuild := Map("cas_native" -> "tcp://miniapp-cassandra-nodeport-service:9042")
//lagomUnmanagedServices in ThisBuild := Map("cas_native" -> "tcp://192.168.64.5:31043")
lagomKafkaEnabled in ThisBuild := false
// this works only in dev local
// everything cassandra should be commented to make it work