-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
54 lines (43 loc) · 1.42 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
name := "akka-examples"
version := "1.0"
scalaVersion := "2.11.7"
// 最简单的SBT工程, 只有一个工程, 将依赖定义在最外层的build.sbt
//lazy val akkaVersion = "2.5.3"
//libraryDependencies ++= Seq(
// "com.typesafe.akka" %% "akka-actor" % akkaVersion,
// "com.typesafe.akka" %% "akka-testkit" % akkaVersion,
// "org.scalatest" %% "scalatest" % "3.0.1" % "test"
//)
// SBT多模块工程, 通过aggregate聚合多个子工程.
// 编译信息定义在Common类中,各个模块的依赖信息定义在Dependencies类中
//lazy val clusterapp = project.
// settings(Common.settings: _*).
// settings(libraryDependencies ++= Dependencies.clusterappDependencies)
//
//lazy val root = (project in file(".")).aggregate(
// clusterapp
//)
lazy val commonSettings = seq (
name := "RemoteLookupDemo",
version := "1.0",
scalaVersion := "2.11.8",
libraryDependencies := Seq(
"com.typesafe.akka" %% "akka-actor" % "2.5.3",
"com.typesafe.akka" %% "akka-remote" % "2.5.3"
)
)
lazy val local = (project in file("local"))
.settings(commonSettings)
.settings(
name := "localSystem"
).aggregate(messages,remote).dependsOn(messages)
lazy val messages = (project in file("messages"))
.settings(commonSettings)
.settings(
name := "commands"
)
lazy val remote = (project in file("remote"))
.settings(commonSettings)
.settings(
name := "remoteSystem"
).aggregate(messages).dependsOn(messages)