Skip to content

Commit

Permalink
Fix akka update guide
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurz committed Jul 20, 2023
1 parent aaa7702 commit fbab0a4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ If you want to use a newer version of Akka, one that is not used by Play yet, yo

Of course, other Akka artifacts can be added transitively. Use [sbt-dependency-graph](https://github.com/jrudolph/sbt-dependency-graph) to better inspect your build and check which ones you need to add explicitly.

If you also want to update Akka HTTP, you should also add its dependencies explicitly:
If you haven't switched to the Netty server backend and therefore are using Play's default Akka HTTP server backend, you also have to update Akka HTTP. Therefore, you need to add its dependencies explicitly as well:

@[akka-http-update](code/javaguide.akkaupdate.sbt)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,29 @@

//#akka-update
// The newer Akka version you want to use.
val akkaVersion = "2.5.16"
val akkaVersion = "2.6.21"

// Akka dependencies used by Play
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % akkaVersion,
"com.typesafe.akka" %% "akka-actor-typed" % akkaVersion,
"com.typesafe.akka" %% "akka-stream" % akkaVersion,
"com.typesafe.akka" %% "akka-slf4j" % akkaVersion,
"com.typesafe.akka" %% "akka-serialization-jackson" % akkaVersion,
// Only if you are using Akka Testkit
"com.typesafe.akka" %% "akka-testkit" % akkaVersion
)
//#akka-update

//#akka-http-update
// The newer Akka HTTP version you want to use.
val akkaHTTPVersion = "10.1.4"
val akkaHTTPVersion = "10.2.10"

// Akka HTTP dependencies used by Play
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-http-core" % akkaHTTPVersion,
// Add this one if you are using HTTP/2
// (e.g. with enabled PlayAkkaHttp2Support sbt plugin in build.sbt)
"com.typesafe.akka" %% "akka-http2-support" % akkaHTTPVersion
)
//#akka-http-update
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ If you want to use a newer version of Akka, one that is not used by Play yet, yo

Of course, other Akka artifacts can be added transitively. Use [sbt-dependency-graph](https://github.com/jrudolph/sbt-dependency-graph) to better inspect your build and check which ones you need to add explicitly.

If you also want to update Akka HTTP, you should also add its dependencies explicitly:
If you haven't switched to the Netty server backend and therefore are using Play's default Akka HTTP server backend, you also have to update Akka HTTP. Therefore, you need to add its dependencies explicitly as well:

@[akka-http-update](code/scalaguide.akkaupdate.sbt)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,29 @@

//#akka-update
// The newer Akka version you want to use.
val akkaVersion = "2.5.16"
val akkaVersion = "2.6.21"

// Akka dependencies used by Play
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % akkaVersion,
"com.typesafe.akka" %% "akka-actor-typed" % akkaVersion,
"com.typesafe.akka" %% "akka-stream" % akkaVersion,
"com.typesafe.akka" %% "akka-slf4j" % akkaVersion,
"com.typesafe.akka" %% "akka-serialization-jackson" % akkaVersion,
// Only if you are using Akka Testkit
"com.typesafe.akka" %% "akka-testkit" % akkaVersion
)
//#akka-update

//#akka-http-update
// The newer Akka HTTP version you want to use.
val akkaHTTPVersion = "10.1.4"
val akkaHTTPVersion = "10.2.10"

// Akka HTTP dependencies used by Play
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-http-core" % akkaHTTPVersion,
// Add this one if you are using HTTP/2
// (e.g. with enabled PlayAkkaHttp2Support sbt plugin in build.sbt)
"com.typesafe.akka" %% "akka-http2-support" % akkaHTTPVersion
)
//#akka-http-update

0 comments on commit fbab0a4

Please sign in to comment.