Reputation: 1202
I keep seeing these messages when I launch sbt shell for my play application:
[warn] * com.typesafe.akka:akka-actor_2.11:2.5.21 is selected over {2.3.13, 2.4.20}
[warn] +- com.typesafe.akka:akka-slf4j_2.11:2.5.21 () (depends on 2.5.21)
[warn] +- com.typesafe.play:play_2.11:2.6.23 () (depends on 2.5.21)
[warn] +- com.typesafe.akka:akka-stream_2.11:2.5.21 () (depends on 2.5.21)
[warn] +- com.typesafe.akka:akka-parsing_2.11:10.0.15 () (depends on 2.4.20)
How do i fix this? Do I need to explicitly set the akka version so it doesn't pick 2.5.21?
Upvotes: 0
Views: 204
Reputation: 749
What you're getting is an eviction warning by sbt, you can check the documentation at this link.
What you could do is to override the dependency used on the sbt file, to avoid runtime errors.
For example:
dependencyOverrides += "com.typesafe.akka" %% "akka-actor" % "2.5.21"
In this way you're specifying to sbt which version of the library to use. You can check also the sbt's plugin dependency-graphto understand all the dependencies inside your project.
Upvotes: 1
Reputation: 2938
I'd recommend to hook up the sbt-dependency-graph sbt plugin and use the following commands to figure out which components depend on which version of akka-actor
sbt <project>/dependencyTree
sbt "<project>/whatDependsOn <organization> <module> <revision>"
sbt <project>/evicted
After coming up with the list of component dependencies, you have a few choices:
Upvotes: 2