Skip to content

Commit

Permalink
Added service locator dependency info (lagom#1821)
Browse files Browse the repository at this point in the history
* Added service locator dependency info

* Update docs/manual/scala/releases/Migration15.md

Co-Authored-By: coreyauger <[email protected]>

* Update docs/manual/scala/releases/Migration15.md

Co-Authored-By: coreyauger <[email protected]>

* added java docs

* Update docs/manual/java/releases/Migration15.md

Co-Authored-By: coreyauger <[email protected]>

* Update docs/manual/scala/releases/Migration15.md

Co-Authored-By: coreyauger <[email protected]>
  • Loading branch information
coreyauger authored and marcospereira committed Mar 25, 2019
1 parent 70db14e commit 2ef426f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
17 changes: 17 additions & 0 deletions docs/manual/java/releases/Migration15.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,23 @@ These new defaults may require at least two changes on your codebase. First, if

You no longer have a `ServiceLocator` provided by the tooling libraries so you will have to provide one of your choice. We recommend using the new [`lagom-akka-discovery-service-locator`](https://github.com/lagom/lagom-akka-discovery-service-locator) which is implemented using [Akka Service Discovery](https://doc.akka.io/docs/akka/current/discovery/index.html) implementations.


You first need to add the following dependency to each service implementation in your `build.sbt`.

```
"com.lightbend.lagom" %% "lagom-javadsl-akka-discovery-service-locator" % "1.0.0"
```

or if you are using `maven`.

```
<dependency>
<groupId>com.lightbend.lagom</groupId>
<artifactId>lagom-javadsl-akka-discovery-service-locator_2.12</artifactId>
<version>1.0.0</version>
</dependency>
```

Read the [docs](https://github.com/lagom/lagom-akka-discovery-service-locator) of the new `lagom-akka-discovery-service-locator` for details on how to setup the Akka Service Discovery [method](https://doc.akka.io/docs/akka/current/discovery/index.html). For example,

```
Expand Down
8 changes: 7 additions & 1 deletion docs/manual/scala/releases/Migration15.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,13 @@ These new defaults may require at least two changes on your codebase. First, if

You no longer have a `ServiceLocator `provided by the tooling libraries so you will have to provide one of your choice. We recommend using the new [`lagom-akka-discovery-service-locator`](https://github.com/lagom/lagom-akka-discovery-service-locator) which is implemented using [Akka Service Discovery](https://doc.akka.io/docs/akka/current/discovery/index.html) implementations.

This means you will have to change you `Loader` code:
You first need to add the following dependency to each service implementation in your `build.sbt`.

```scala
"com.lightbend.lagom" %% "lagom-scaladsl-akka-discovery-service-locator" % "1.0.0"
```

Next you will have to change the `Loader` code in each service implementation:

```scala
// before
Expand Down

0 comments on commit 2ef426f

Please sign in to comment.