Packaging and deploying the Akka standalone application
After developing any application, we package it as a distribution/assembly to run on any platform. In this trick, you will learn how to package an Akka application into a distribution and how to deploy it to run as a standalone application.
Getting ready
We will use the SBT assembly plugin to package the application into a fat jar. Just import the Hello-Akka
project into the IDE. We are assuming that you have a working knowledge of SBT and its assembly plugin.
How to do it…
- For every SBT project, we have an
assembly.sbt
file in the project's project folder. If the file is not present, then we create one.
Â
Â
- Add the SBT assembly plugin dependency in the file:
    addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.3")
- Now go to the project root directory and run the
sbt update
 command from the command line and it will download the plugin dependency jar. - Now go to the project root directory and run the
sbt assembly
 command to package the...