Ivan Zelenskyy
Ivan Zelenskyy

Reputation: 669

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?

Upvotes: 2

Views: 2549

Answers (2)

mgosk
mgosk

Reputation: 1876

Check this example https://github.com/theiterators/akka-http-microservice. It use newest akka-http version

Upvotes: 1

lpiepiora
lpiepiora

Reputation: 13749

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

Upvotes: 2

Related Questions