You can utilize other Play Framework or third-party modules in your Play application. This is easily done by editing the build file (
build.sbt) and declaring library dependencies in the style of
sbt dependency declaration.
You need to perform the following steps to declare a module:
build.sbtfile and add the following lines, using the notation of the group ID
%version while declaring library dependencies:
libraryDependencies ++= Seq( jdbc, "mysql" % "mysql-connector-java" % "5.1.28" )
build.sbthave been saved, head over to the command line and have Activator download the newly declared dependencies:
$ activator clean dependencies
In this recipe, we declare ...