Home

Awesome

Play Slick

Twitter Follow Discord GitHub Discussions StackOverflow YouTube Twitch Status OpenCollective

Build Status Maven Repository size Scala Steward badge Mergify Status

The Play Slick module makes Slick a first-class citizen of Play. It consists of two features:

Because Slick creates and manages both a connection pool and a thread pool, integrating Slick with Play boils down to ensuring that all resources allocated by Slick are shutdown when a Play application is stopped (or reloaded).

The plugin has its own release cycle and therefore is not integrated into either core Play or Slick.

Examples of play-slicks usage can be found here.

Current Version

To use play-slick, you need to add the following dependencies:

libraryDependencies ++= Seq(
  "org.playframework" %% "play-slick" % "6.1.0",
  "org.playframework" %% "play-slick-evolutions" % "6.1.0"
)

Or use a version that is compatible with the Play version you are using. See all available versions below.

All Releases

The Play Slick plugin supports several different versions of Play and Slick.

Plugin versionPlay versionSlick versionScala version
6.1.x3.0.03.5.0+2.13.x/3.3.x
5.3.x2.9.03.5.0+2.13.x/3.3.x
6.0.x3.0.03.4.12.13.x
5.2.x2.9.03.4.12.13.x
5.1.x2.8.163.4.1+2.12.x/2.13.x
5.0.x2.8.x3.3.2+2.12.x/2.13.x
4.0.2+2.7.x3.3.2+2.11.x/2.12.x/2.13.x
4.0.x2.7.x3.3.x2.11.x/2.12.x
3.0.x2.6.x3.2.x2.11.x/2.12.x
2.1.x2.5.x3.2.02.11.x
2.0.x2.5.x3.1.02.11.x
1.1.x2.4.x3.1.02.10.x/2.11.x
1.0.12.4.x3.0.12.10.x/2.11.x
1.0.02.4.x3.0.02.10.x/2.11.x
0.8.x2.3.x2.1.02.10.x/2.11.x
0.7.02.3.x2.0.22.10.x
0.6.12.2.x2.0.x2.10.x
0.5.12.2.x1.0.x2.10.x

Note that the + next to a version means that the specified version and later trailing point releases are supported by the same version of the play-slick plugin. While a x means that any trailing point release is supported by the same version of play-slick.

Documentation

The documentation for the latest release is available here.

Releasing a new version

See https://github.com/playframework/.github/blob/main/RELEASING.md

Copyright

License: Apache License 2.0, http://www.apache.org/licenses/LICENSE-2.0.html