-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.sbt
114 lines (102 loc) · 3.76 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
organization in ThisBuild := "com.streetcontxt"
scalaVersion in ThisBuild := "2.11.8"
licenses in ThisBuild += ("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0.html"))
bintrayOrganization in ThisBuild := Some("streetcontxt")
resolvers in ThisBuild += Resolver.bintrayRepo("streetcontxt", "maven")
val versionPattern = "release-([0-9\\.]*)".r
version in ThisBuild := sys.props
.get("CIRCLE_TAG")
.orElse(sys.env.get("CIRCLE_TAG"))
.flatMap {
case versionPattern(v) => Some(v)
case _ => None
}
.getOrElse("LOCAL-SNAPSHOT")
val slf4j = "org.slf4j" % "log4j-over-slf4j" % "1.7.21"
val akkaStreamKinesisConsumer = "com.streetcontxt" %% "kcl-akka-stream" % "1.0.3"
val scalaKinesisProducer = "com.streetcontxt" %% "kpl-scala" % "1.0.3"
val awsJavaSdk = "com.amazonaws" % "aws-java-sdk" % "1.11.98"
val scalaTest = "org.scalatest" %% "scalatest" % "3.0.1"
val lagomApi = "com.lightbend.lagom" %% "lagom-api" % "1.3.0"
val lagomApiJavaDsl = "com.lightbend.lagom" %% "lagom-javadsl-api" % "1.3.0"
val lagomApiScalaDsl = "com.lightbend.lagom" %% "lagom-scaladsl-api" % "1.3.0"
val lagomPersistenceCore = "com.lightbend.lagom" %% "lagom-persistence-core" % "1.3.0"
val lagomJavadslBroker = "com.lightbend.lagom" %% "lagom-javadsl-broker" % "1.3.0"
val lagomJavadslServer = "com.lightbend.lagom" %% "lagom-javadsl-server" % "1.3.0"
val lagomScaladslBroker = "com.lightbend.lagom" %% "lagom-scaladsl-broker" % "1.3.0"
val lagomScaladslServer = "com.lightbend.lagom" %% "lagom-scaladsl-server" % "1.3.0"
val kinesisProjects = Seq[Project](
`kinesis-client`,
`kinesis-client-javadsl`,
`kinesis-client-scaladsl`,
`kinesis-broker`,
`kinesis-broker-javadsl`,
`kinesis-broker-scaladsl`
)
lazy val root = (project in file("."))
.settings(name := "lagom-kinesis")
.aggregate(kinesisProjects.map(Project.projectToRef): _*)
lazy val `kinesis-client` = (project in file("service/core/kinesis/client"))
.settings(name := "lagom-kinesis-client")
.settings(
libraryDependencies ++= Seq(
slf4j,
akkaStreamKinesisConsumer,
awsJavaSdk,
lagomApi,
scalaTest % Test
)
)
lazy val `kinesis-client-javadsl` = (project in file("service/javadsl/kinesis/client"))
.settings(
name := "lagom-javadsl-kinesis-client"
)
.settings(
libraryDependencies ++= Seq(
lagomApiJavaDsl
)
)
.dependsOn(`kinesis-client`)
lazy val `kinesis-client-scaladsl` = (project in file("service/scaladsl/kinesis/client"))
.settings(name := "lagom-scaladsl-kinesis-client")
.settings(
libraryDependencies ++= Seq(
lagomApiScalaDsl
)
)
.dependsOn(`kinesis-client`)
lazy val `kinesis-broker` = (project in file("service/core/kinesis/server"))
.settings(name := "lagom-kinesis-broker")
.settings(
libraryDependencies ++= Seq(
slf4j,
akkaStreamKinesisConsumer,
scalaKinesisProducer,
awsJavaSdk,
lagomApi,
lagomPersistenceCore,
"org.mock-server" % "mockserver-netty" % "3.10.4"
)
)
.dependsOn(`kinesis-client`)
lazy val `kinesis-broker-javadsl` = (project in file("service/javadsl/kinesis/server"))
.settings(name := "lagom-javadsl-kinesis-broker")
.settings(
libraryDependencies ++= Seq(
lagomApiJavaDsl,
lagomJavadslBroker,
lagomJavadslServer,
scalaTest % Test
)
)
.dependsOn(`kinesis-broker`, `kinesis-client-javadsl`)
lazy val `kinesis-broker-scaladsl` = (project in file("service/scaladsl/kinesis/server"))
.settings(name := "lagom-scaladsl-kinesis-broker")
.settings(
libraryDependencies ++= Seq(
lagomScaladslBroker,
lagomScaladslServer,
scalaTest % Test
)
)
.dependsOn(`kinesis-broker`, `kinesis-client-scaladsl`)