-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.sbt
78 lines (68 loc) · 2.07 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
import laserdisc.sbt.CompileTarget.Scala2And3
import laserdisc.sbt.LaserDiscDevelopers._
name := "mysql-binlog-stream"
ThisBuild / laserdiscRepoName := "mysql-binlog-stream"
ThisBuild / laserdiscCompileTarget := Scala2And3
lazy val commonSettings = Seq(
Test / parallelExecution := false,
Test / fork := true,
developers := List(Dmytro, Barry)
)
lazy val noPublishSettings = Seq(
publish := {},
publishLocal := {},
publishArtifact := false
)
lazy val dockerPublishSettings = Seq(
Docker / maintainer := "Dmytro Semenov <[email protected]>",
Docker / dockerExposedPorts := Seq(),
dockerBaseImage := "openjdk:11",
dockerUpdateLatest := true,
Universal / javaOptions ++= Seq(
"-J-XX:InitialRAMPercentage=70",
"-J-XX:MaxRAMPercentage=85"
)
)
lazy val root = project
.in(file("."))
.settings(commonSettings)
.settings(noPublishSettings)
.aggregate(
`mysql-binlog-stream-shared`,
`binlog-stream-models`,
`binlog-stream`,
`mysql-binlog-stream-examples`
)
.enablePlugins(LaserDiscDefaultsPlugin)
lazy val `mysql-binlog-stream-examples` =
(project in file("mysql-binlog-stream-examples"))
.settings(
commonSettings,
dockerPublishSettings,
noPublishSettings,
Dependencies.Config,
Dependencies.XML
)
.dependsOn(`binlog-stream`)
.enablePlugins(JavaAppPackaging)
lazy val `mysql-binlog-stream-shared` = (project in file("mysql-binlog-stream-shared"))
.settings(
commonSettings,
Dependencies.TestLib,
Dependencies.Circe
)
lazy val `binlog-stream` = (project in file("binlog-stream"))
.settings(
commonSettings,
Dependencies.TestLib,
Dependencies.Logging
)
.dependsOn(`mysql-binlog-stream-shared` % "compile->compile;test->test")
.dependsOn(`binlog-stream-models`)
lazy val `binlog-stream-models` = (project in file("binlog-stream-models"))
.settings(
commonSettings,
Dependencies.TestLib,
Dependencies.Persistence
)
.dependsOn(`mysql-binlog-stream-shared` % "compile->compile;test->test")