This repository has been archived by the owner on Jun 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 99
/
build.sbt
161 lines (143 loc) · 7.97 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
import sbt._
import sbt.Keys._
import sbtunidoc.Plugin.UnidocKeys._
import MultiJvmKeys._
import ProjectSettings._
import ProjectDependencies._
version in ThisBuild := "0.11-SNAPSHOT"
organization in ThisBuild := "com.rbmhtechnology"
scalaVersion in ThisBuild := "2.11.12"
lazy val root = (project in file("."))
.aggregate(core, crdt, crdtPure, logCassandra, logLeveldb, adapterStream, adapterVertx, examples, exampleStream, exampleVertx)
.dependsOn(core, logCassandra, logLeveldb)
.settings(name := "eventuate")
.settings(rootSettings: _*)
.settings(documentationSettings: _*)
.settings(unidocProjectFilter in (ScalaUnidoc, unidoc) := inAnyProject -- inProjects(examples, exampleSpark, exampleStream, exampleVertx))
.settings(libraryDependencies ++= Seq(AkkaRemote))
.enablePlugins(HeaderPlugin, AutomateHeaderPlugin)
.disablePlugins(SbtScalariform)
lazy val core = (project in file("eventuate-core"))
.settings(name := "eventuate-core")
.settings(commonSettings: _*)
.settings(protocSettings: _*)
.settings(integrationTestSettings: _*)
.settings(libraryDependencies ++= Seq(AkkaRemote, CommonsIo, Java8Compat, Scalaz))
.settings(libraryDependencies ++= Seq(AkkaTestkit % "test,it", AkkaTestkitMultiNode % "test", Javaslang % "test", JunitInterface % "test", Scalatest % "test,it"))
.settings(integrationTestPublishSettings: _*)
.configs(IntegrationTest, MultiJvm)
.enablePlugins(HeaderPlugin, AutomateHeaderPlugin)
lazy val logCassandra = (project in file("eventuate-log-cassandra"))
.dependsOn(core % "compile->compile;it->it;multi-jvm->multi-jvm")
.settings(name := "eventuate-log-cassandra")
.settings(commonSettings: _*)
.settings(integrationTestSettings: _*)
.settings(integrationTestPublishSettings: _*)
.settings(libraryDependencies ++= Seq(AkkaRemote, CassandraDriver))
.settings(libraryDependencies ++= Seq(AkkaTestkit % "test,it", AkkaTestkitMultiNode % "test", Log4jApi % "test,it", Log4jCore % "test,it", Log4jSlf4j % "test,it", Scalatest % "test,it", Sigar % "test,it"))
.settings(libraryDependencies ++= Seq(CassandraUnit % "test,it" excludeAll ExclusionRule(organization = "ch.qos.logback")))
.settings(jvmOptions in MultiJvm += "-Dmultinode.server-port=4712")
.configs(IntegrationTest, MultiJvm)
.enablePlugins(HeaderPlugin, AutomateHeaderPlugin)
lazy val logLeveldb = (project in file("eventuate-log-leveldb"))
.dependsOn(core % "compile->compile;it->it;multi-jvm->multi-jvm")
.settings(name := "eventuate-log-leveldb")
.settings(commonSettings: _*)
.settings(integrationTestSettings: _*)
.settings(integrationTestPublishSettings: _*)
.settings(libraryDependencies ++= Seq(AkkaRemote, Leveldb))
.settings(libraryDependencies ++= Seq(AkkaTestkit % "test,it", AkkaTestkitMultiNode % "test", Scalatest % "test,it"))
.settings(jvmOptions in MultiJvm += "-Dmultinode.server-port=4713")
.configs(IntegrationTest, MultiJvm)
.enablePlugins(HeaderPlugin, AutomateHeaderPlugin)
lazy val adapterSpark = (project in file("eventuate-adapter-spark"))
.dependsOn(logCassandra % "compile->compile;it->it;multi-jvm->multi-jvm")
.dependsOn(logLeveldb % "compile->compile;it->it;multi-jvm->multi-jvm")
.settings(name := "eventuate-adapter-spark")
.settings(commonSettings: _*)
.settings(integrationTestSettings: _*)
.settings(libraryDependencies ++= Seq(AkkaRemote, CassandraClientUtil, CassandraConnector,
SparkCore % "provided" exclude("org.slf4j", "slf4j-log4j12"),
SparkSql % "provided" exclude("org.slf4j", "slf4j-log4j12"),
SparkStreaming % "provided" exclude("org.slf4j", "slf4j-log4j12")))
.settings(libraryDependencies ++= Seq(AkkaTestkit % "test,it", AkkaTestkitMultiNode % "test", Scalatest % "test,it", Sigar % "test,it"))
.settings(libraryDependencies ++= Seq(CassandraUnit % "test,it" excludeAll ExclusionRule(organization = "ch.qos.logback")))
.settings(jvmOptions in MultiJvm += "-Dmultinode.server-port=4714")
.configs(IntegrationTest, MultiJvm)
.enablePlugins(HeaderPlugin, AutomateHeaderPlugin)
lazy val adapterStream = (project in file("eventuate-adapter-stream"))
.dependsOn(core % "compile->compile;it->it")
.dependsOn(logLeveldb % "it->it")
.settings(name := "eventuate-adapter-stream")
.settings(commonSettings: _*)
.settings(integrationTestSettings: _*)
.settings(libraryDependencies ++= Seq(AkkaStream))
.settings(libraryDependencies ++= Seq(AkkaTestkit % "test,it", AkkaStreamTestkit % "test,it", Scalatest % "test,it"))
.configs(IntegrationTest)
.enablePlugins(HeaderPlugin, AutomateHeaderPlugin)
lazy val adapterVertx = (project in file("eventuate-adapter-vertx"))
.dependsOn(core % "compile->compile;it->it")
.dependsOn(logLeveldb % "it->it")
.settings(name := "eventuate-adapter-vertx")
.settings(commonSettings: _*)
.settings(scalacOptions += "-target:jvm-1.8")
.settings(integrationTestSettings: _*)
.settings(libraryDependencies ++= Seq(AkkaRemote,
VertxCore % "provided",
VertxRxJava % "provided"))
.settings(libraryDependencies ++= Seq(AkkaTestkit % "test,it", Scalatest % "test,it"))
.configs(IntegrationTest)
.enablePlugins(HeaderPlugin, AutomateHeaderPlugin)
lazy val crdt = (project in file("eventuate-crdt"))
.dependsOn(core % "compile->compile;it->it;multi-jvm->multi-jvm")
.dependsOn(logLeveldb % "test;it->it;multi-jvm->multi-jvm")
.settings(name := "eventuate-crdt")
.settings(commonSettings: _*)
.settings(protocSettings: _*)
.settings(integrationTestSettings: _*)
.settings(libraryDependencies ++= Seq(AkkaRemote))
.settings(libraryDependencies ++= Seq(AkkaTestkit % "test,it", AkkaTestkitMultiNode % "test", Scalatest % "test,it"))
.settings(jvmOptions in MultiJvm += "-Dmultinode.server-port=4715")
.configs(IntegrationTest, MultiJvm)
.enablePlugins(HeaderPlugin, AutomateHeaderPlugin)
lazy val crdtPure = (project in file("eventuate-crdt-pure"))
.dependsOn(core % "compile->compile;it->it;multi-jvm->multi-jvm")
.dependsOn(logLeveldb % "test;it->it;multi-jvm->multi-jvm")
.settings(name := "eventuate-crdt-pure")
.settings(commonSettings: _*)
.settings(protocSettings: _*)
.settings(integrationTestSettings: _*)
.settings(libraryDependencies ++= Seq(AkkaRemote))
.settings(libraryDependencies ++= Seq(AkkaTestkit % "test,it", AkkaTestkitMultiNode % "test", Scalatest % "test,it"))
.settings(jvmOptions in MultiJvm += "-Dmultinode.server-port=4715")
.configs(IntegrationTest, MultiJvm)
.enablePlugins(HeaderPlugin, AutomateHeaderPlugin)
lazy val examples = (project in file("eventuate-examples"))
.dependsOn(core, logLeveldb)
.settings(name := "eventuate-examples")
.settings(commonSettings: _*)
.settings(exampleSettings: _*)
.settings(libraryDependencies ++= Seq(AkkaRemote, CassandraDriver, Javaslang, Log4jApi, Log4jCore, Log4jSlf4j))
.enablePlugins(HeaderPlugin, AutomateHeaderPlugin)
lazy val exampleStream = (project in file("eventuate-example-stream"))
.dependsOn(core, logLeveldb, adapterStream)
.settings(name := "eventuate-example-stream")
.settings(commonSettings: _*)
.settings(libraryDependencies ++= Seq(AkkaRemote, Log4jApi, Log4jCore, Log4jSlf4j))
.enablePlugins(HeaderPlugin, AutomateHeaderPlugin)
lazy val exampleSpark = (project in file("eventuate-example-spark"))
.dependsOn(core, logCassandra, adapterSpark)
.settings(name := "eventuate-example-spark")
.settings(commonSettings: _*)
.settings(libraryDependencies ++= Seq(AkkaRemote, CassandraDriver, Log4jApi, Log4jCore, Log4jSlf4j,
SparkCore exclude("org.slf4j", "slf4j-log4j12"),
SparkSql exclude("org.slf4j", "slf4j-log4j12"),
SparkStreaming exclude("org.slf4j", "slf4j-log4j12")))
.enablePlugins(HeaderPlugin, AutomateHeaderPlugin)
lazy val exampleVertx = (project in file("eventuate-example-vertx"))
.dependsOn(core, logLeveldb, adapterVertx)
.settings(name := "eventuate-example-vertx")
.settings(commonSettings: _*)
.settings(scalacOptions += "-target:jvm-1.8")
.settings(libraryDependencies ++= Seq(AkkaRemote, Leveldb, Javaslang, Log4jApi, Log4jCore, Log4jSlf4j, ExampleVertxCore, ExampleVertxRxJava))
.enablePlugins(HeaderPlugin, AutomateHeaderPlugin)