-
Notifications
You must be signed in to change notification settings - Fork 15
/
build.sbt
executable file
·61 lines (56 loc) · 1.91 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
import com.typesafe.sbt.SbtMultiJvm
lazy val `constructr-consul` = project
.in(file("."))
.enablePlugins(GitVersioning, NoPublish)
.disablePlugins(BintrayPlugin)
.aggregate(
`constructr-coordination-consul`,
`constructr-coordination-demo`,
`constructr-coordination-testing`)
lazy val `constructr-coordination-consul` = project
.in(file("constructr-coordination-consul"))
.enablePlugins(AutomateHeaderPlugin)
.settings(
name := "constructr-coordination-consul",
libraryDependencies ++= Seq(
Library.akkaHttp,
Library.constructrAkka,
Library.circeParser,
Library.akkaTestkit % Test,
Library.scalaTest % Test
)
)
lazy val `constructr-coordination-testing` = project
.in(file("constructr-coordination-testing"))
.enablePlugins(AutomateHeaderPlugin, SbtMultiJvm, NoPublish)
.disablePlugins(BintrayPlugin)
.configs(MultiJvm)
.settings(
name := "constructr-coordination-testing",
unmanagedSourceDirectories.in(MultiJvm) := Vector(scalaSource.in(MultiJvm).value),
test.in(Test) := test.in(MultiJvm).dependsOn(test.in(Test)).value,
libraryDependencies ++= Seq(
Library.akkaMultiNodeTestkit % Test,
Library.scalaTest % Test
)
)
.dependsOn(`constructr-coordination-consul` % "test->compile")
lazy val `constructr-coordination-demo` = project
.in(file("constructr-coordination-demo"))
.enablePlugins(AutomateHeaderPlugin, AshScriptPlugin, NoPublish)
.disablePlugins(BintrayPlugin)
.dependsOn(`constructr-coordination-consul`)
.settings(
name := "constructr-coordination-demo",
dockerSettings ++ Seq(
libraryDependencies ++= Seq(
Library.akkaLog4j,
Library.log4jCore
)
))
lazy val dockerSettings: Seq[Setting[_]] = Seq(
maintainer in Docker := "Tecsisa",
dockerBaseImage := "frolvlad/alpine-oraclejdk8:slim",
daemonUser in Docker := "root",
version in Docker := "latest"
)