Include version error in the docs (#27365)

So the relevant section will show up in google
This commit is contained in:
Arnout Engelen 2019-07-24 08:47:37 +02:00 committed by Christopher Batey
parent c4d4dd3875
commit ccd2c9aff6

View file

@ -83,6 +83,18 @@ This is because modules may assume internals changes across module boundaries, f
in Clustering may have required an internals change in Actor, however it is not public API, in Clustering may have required an internals change in Actor, however it is not public API,
thus such change is considered safe. thus such change is considered safe.
If you accidentally mix Akka versions, for example through transitive
dependencies, you might get a warning at run time such as:
```
Detected possible incompatible versions on the classpath. Please note that a given Akka version MUST be the same across all modules of Akka that you are using, e.g. if you use [2.5.17] all other modules that are released together MUST be of the same version. Make sure you're using a compatible set of libraries. Possibly conflicting versions [2.5.4, 2.5.17] in libraries [akka-protobuf:2.5.4, akka-actor:2.5.17, akka-stream:2.5.4]
```
The fix is typically to pick the highest Akka version, and add explicit
dependencies to your project as needed. For example, in the example above
you might want to add dependencies on akka-protobuf:2.5.17 and
akka-stream:2.5.17.
@@@ note @@@ note
We recommend keeping an `akkaVersion` variable in your build file, and re-use it for all We recommend keeping an `akkaVersion` variable in your build file, and re-use it for all