将 akka 微服务作为多项目来玩

Play akka microservice as multi project

我正在学习微服务。出于演示目的,我想结合一个前端:play 和一些后端服务:Akka。 SBTsmulti-project` 编译应该很适合这个。但是我遇到了一些问题:

跟随: https://github.com/dataplayground/microservice

依赖项必须这样显式导入:

lazy val backend = (project in file(".")).aggregate(api)

lazy val api = project.in(file("modules/api"))
  .settings(libraryDependencies ++= backendCommon)

lazy val backendCommon = Seq(
  "com.typesafe.akka" %% "akka-actor" % "2.3.11",
  "com.typesafe.akka" %% "akka-testkit" % "2.3.11" % "test",
  "org.scalatest" %% "scalatest" % "2.2.4" % "test")