Search code examples
sbtakkatypesafe-activatorakka-streamakka-http

How to add newest Akka-HTTP and Akka-stream to build.sbt


I'm using Typesafe/Lightbend Activator, and created a project with 'minimal-akka-scala-seed'. Then I'd changed akka version from 2.3.11 to 2.4.2 (current stable version). Now I want to add newest stable Akka-HTTP and Akka-stream to my project. What I should write in build.sbt to do this?


Solution

  • Some of the artifacts are no longer marked as experimental, with the 2.4.2 release.

    I believe, that the dependency list should look like this:

    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")