What do we need to set up Slick? In the build.sbt file from the project generated on the Developing a full project chapter, the requested libraries are set in the server section. Slick is well integrated with Play, and the full list of dependencies is as follows:
libraryDependencies ++= Seq( "com.typesafe.play" %% "play-slick" % "3.0.0", "com.typesafe.play" %% "play-slick-evolutions" % "3.0.0", "com.h2database" % "h2" % "1.4.196" )
We added Slick dependencies, as well as the Evolution module. Evolution is a module that simplifies schema management; we will come back to that later.
We had to add the JDBC driver as well; this is due to the fact that Slick does not come bundled with all of the drivers.