-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
83 lines (70 loc) · 2.13 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
organization in ThisBuild := "com.ctc.ava"
git.useGitDescribe in ThisBuild := true
scalaVersion in ThisBuild := "2.11.11"
scalacOptions in ThisBuild ++= Seq(
"-target:jvm-1.8",
"-encoding", "UTF-8",
"-feature",
"-unchecked",
"-deprecation",
"-language:postfixOps",
"-language:implicitConversions",
"-Ywarn-unused-import",
"-Xfatal-warnings",
"-Xlint:_"
)
lazy val `alert-sink` =
project.in(file("."))
.aggregate(
`alert-sink-api`,
`alert-sink-impl`
)
.settings(commonSettings: _*)
.enablePlugins(GitVersioning)
lazy val `alert-sink-api` =
project.in(file("alert-sink-api"))
.settings(commonSettings: _*)
.settings(
libraryDependencies ++= Seq(
lagomScaladslApi,
scalaTest
)
)
.enablePlugins(GitVersioning, ArtifactoryPlugin)
lazy val `alert-sink-impl` =
project.in(file("alert-sink-impl"))
.dependsOn(`alert-sink-api`)
.settings(lagomForkedTestSettings: _*)
.settings(commonSettings: _*)
.settings(
libraryDependencies ++= Seq(
lagomScaladslPersistenceJdbc,
lagomScaladslKafkaBroker,
lagomScaladslTestKit,
macwire,
playJsonDerivedCodecs,
"com.typesafe.scala-logging" %% "scala-logging" % "3.5.0",
"mysql" % "mysql-connector-java" % "6.0.5",
scalaTest
)
)
.settings(dockerSettings: _*)
.enablePlugins(LagomScala, OpenShiftPlugin, GitVersioning)
lazy val macwire = "com.softwaremill.macwire" %% "macros" % "2.2.5" % "provided"
lazy val scalaTest = "org.scalatest" %% "scalatest" % "3.0.1" % Test
lazy val playJsonDerivedCodecs = "org.julienrf" %% "play-json-derived-codecs" % "3.3"
lazy val commonSettings = Seq(
headerLicense := Some(HeaderLicense.Custom(
"©Concurrent Technologies Corporation 2017"
))
)
lazy val dockerSettings = Seq(
packageName in Docker := "alert-sink",
version in Docker := "latest",
dockerExposedPorts := Seq(9000),
dockerRepository := Some("docker.ctc.com/big")
)
lagomKafkaEnabled in ThisBuild := false
lagomKafkaAddress in ThisBuild := "172.17.0.1:9092"
lagomUnmanagedServices in ThisBuild += ("elasticsearch" -> "http://172.17.0.1:9200")
lagomCassandraEnabled in ThisBuild := false