Configuration
We will use the following components to define Play Framework Scala-based SBT projects:
- Routes to define Play routings
application.conf
to define Play application configurationplugins.sbt
to define SBT plugins, such as the Play Framework plugin- The sample
plugins.sbt
file:
addSbtPlugin ("com.typesafe.play" % "sbt-plugin" % "2.6.3")
- The logging configuration in the
logback.xml
file build.sbt
configuration to define any Play modules, such as the Play WS module and Google Guice module, project name, Scala version and so on, as shown as follows:
Sample build.sbt file:
name := "play-scala-fileupload-app" version := "1.0.0" lazy val root = (project in file(".")).enablePlugins(PlayScala) scalaVersion := "2.12.2" libraryDependencies += guice libraryDependencies += ws Sbt version in build.properties file Sample build.properties sbt.version=0.13.16
Note
You will observe the following while developing our examples in the upcoming...