-
Notifications
You must be signed in to change notification settings - Fork 69
/
build.sbt
42 lines (27 loc) · 1.66 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
import sbt.Keys._
organization in ThisBuild := "pl.newicom"
version in ThisBuild := "0.7.8-SNAPSHOT"
scalaVersion in ThisBuild := "2.12.6"
scalacOptions in ThisBuild := Seq("-deprecation", "-encoding", "utf8", "-feature", "-language:postfixOps", "-language:implicitConversions"/*, "-Xlog-implicits"*/)
sourcesInBase in ThisBuild := false
lazy val root = project.aggregate(commons, monitoring, sales, shipping, invoicing, headquarters, `e2e-tests`)
lazy val commons = project
lazy val monitoring = project.dependsOn(commons)
lazy val sales = project.dependsOn(commons)
lazy val invoicing = project.dependsOn(commons)
lazy val shipping = project.dependsOn(commons)
lazy val headquarters = project.dependsOn(commons)
lazy val `e2e-tests` = project
// Rebuilds and restarts current application (or whole system if called from root project)
addCommandAlias("redeploy", ";clean;docker:stage;restart")
addCommandAlias("redeployQuick", ";docker:stage;restart")
// redeployQuick aliases per application
addCommandAlias("rsrb", ";project sales-read-back;docker:stage;restart")
addCommandAlias("rsrf", ";project sales-read-front;docker:stage;restart")
addCommandAlias("rswb", ";project sales-write-back;docker:stage;restart")
addCommandAlias("rswf", ";project sales-write-front;docker:stage;restart")
addCommandAlias("riwb", ";project invoicing-write-back;docker:stage;restart")
addCommandAlias("riwf", ";project invoicing-write-front;docker:stage;restart")
addCommandAlias("rshrb", ";project shipping-read-back;docker:stage;restart")
addCommandAlias("rshrf", ";project shipping-read-front;docker:stage;restart")
addCommandAlias("rshwb", ";project shipping-write-back;docker:stage;restart")