-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
55 lines (49 loc) · 1.63 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
import Dependencies._
// TODO: Split these settings into more sensible groups
// (eg: not every project would be published as docker image)
lazy val commonSettings = Seq(
organization := "com.aerohitsaxena",
version := "0.1.0",
scalaVersion := "2.12.4",
dockerBaseImage := "openjdk:jre-alpine",
dockerUpdateLatest := true,
scalafmtOnCompile in ThisBuild := true,
scalafmtTestOnCompile in ThisBuild := true,
dockerRepository := Option("aerohit")
)
lazy val akkaHttpVersion = "10.0.11"
lazy val backend = (project in file("backend"))
.settings(
commonSettings,
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-http" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-http-spray-json" % akkaHttpVersion
)
)
.enablePlugins(JavaAppPackaging)
.enablePlugins(DockerPlugin)
.enablePlugins(AshScriptPlugin)
// TODO: create micro service kind of plugin for above
lazy val frontend = (project in file("frontend"))
.settings(
commonSettings,
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-http" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-http-spray-json" % akkaHttpVersion
)
)
.enablePlugins(JavaAppPackaging)
.enablePlugins(DockerPlugin)
.enablePlugins(AshScriptPlugin)
// The idea of this service is that it simply registers with consul on bootup
lazy val myservice = project
.settings(
commonSettings,
libraryDependencies ++= Seq(
"com.typesafe" % "config" % "1.3.1",
"org.scalaj" %% "scalaj-http" % "2.3.0"
)
)
.enablePlugins(JavaAppPackaging)
.enablePlugins(DockerPlugin)
.enablePlugins(AshScriptPlugin)