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 configuration
- plugins.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...