如何将最新的 Akka-HTTP 和 Akka-stream 添加到 build.sbt



我正在使用Typesafe/Lightbend Activator,并使用"minimal-akka-scala-seed"创建了一个项目。然后我将 akka 版本从 2.3.11 更改为 2.4.2(当前稳定版本)。现在我想将最新的稳定版 Akka-HTTP 和 Akka-stream 添加到我的项目中。我应该在build.sbt中写什么来做到这一点?

2.4.2版本中,某些工件不再标记为实验性工件。

我相信,依赖项列表应如下所示:

libraryDependencies ++= Seq(
  // akka
  "com.typesafe.akka" %% "akka-actor" % "2.4.2",
  "com.typesafe.akka" %% "akka-testkit" % "2.4.2" % "test",
  // streams
  "com.typesafe.akka" %% "akka-stream" % "2.4.2",
  // akka http
  "com.typesafe.akka" %% "akka-http-core" % "2.4.2",
  "com.typesafe.akka" %% "akka-http-experimental" % "2.4.2",
  "com.typesafe.akka" %% "akka-http-testkit" % "2.4.2" % "test",
  // the next one add only if you need Spray JSON support
  "com.typesafe.akka" %% "akka-http-spray-json-experimental" % "2.4.2",
  "org.scalatest" %% "scalatest" % "2.2.4" % "test")

https://github.com/theiterators/akka-http-microservice 检查此示例。它使用最新的akka-http版本

最新更新