Back to directory
playframework avatar

play-slick

Slick Plugin for Play. Read more below about its uses, features, and usage.

Clone repository

git clone https://github.com/playframework/play-slick.git

794

Stars

272

Forks

43

Watchers

Apache-2.0

License

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:

  • Integration of Slick into Play's application lifecycle.
  • Support for Play database evolutions.

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.2.0",
  "org.playframework" %% "play-slick-evolutions" % "6.2.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 version Play version Slick version Scala version
6.2.x 3.0.0 3.6.0+ 2.13.x/3.3.x
5.4.x 2.9.0 3.6.0+ 2.13.x/3.3.x
6.1.x 3.0.0 3.5.0+ 2.13.x/3.3.x
5.3.x 2.9.0 3.5.0+ 2.13.x/3.3.x
6.0.x 3.0.0 3.4.1 2.13.x
5.2.x 2.9.0 3.4.1 2.13.x
5.1.x 2.8.16 3.4.1+ 2.12.x/2.13.x
5.0.x 2.8.x 3.3.2+ 2.12.x/2.13.x
4.0.2+ 2.7.x 3.3.2+ 2.11.x/2.12.x/2.13.x
4.0.x 2.7.x 3.3.x 2.11.x/2.12.x
3.0.x 2.6.x 3.2.x 2.11.x/2.12.x
2.1.x 2.5.x 3.2.0 2.11.x
2.0.x 2.5.x 3.1.0 2.11.x
1.1.x 2.4.x 3.1.0 2.10.x/2.11.x
1.0.1 2.4.x 3.0.1 2.10.x/2.11.x
1.0.0 2.4.x 3.0.0 2.10.x/2.11.x
0.8.x 2.3.x 2.1.0 2.10.x/2.11.x
0.7.0 2.3.x 2.0.2 2.10.x
0.6.1 2.2.x 2.0.x 2.10.x
0.5.1 2.2.x 1.0.x 2.10.x
  • Release Candidate: these releases are not stable and should not be used in production.

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

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

Releases

Apr 22, 2025

Play Slick 6.2.0

Download .zip

Changes

#945 [6.2.x] slick, slick-hikaricp 3.6.0 (was 3.5.2) by @scala-steward #953 [6.2.x] Switch to 6.2.x branch by @mkurz #946 [6.1.x] Patch updates by @scala-steward #938 [6.1.x] Patch updates by...

Apr 22, 2025

Play Slick 5.4.0

Download .zip

Changes

#950 [5.4.x] slick, slick-hikaricp 3.6.0 (was 3.5.2) by @scala-steward #954 [5.4.x] Switch to 5.4.x branch by @mkurz #951 [5.3.x] Patch updates by @scala-steward #942 [5.3.x] Patch updates by...

Jun 26, 2024

Play Slick 6.1.1

Download .zip

Changes

#859 Set unique poolName based on database name by @mwisnicki #876 Patch updates by @mkurz #866 sbt 1.10.0 (was 1.9.9) by @scala-steward #867 Patch updates by @scala-steward #860 Bump scalace...

Jun 26, 2024

Play Slick 5.3.1

Download .zip

Changes

#875 [5.3.x] Set unique poolName based on database name (backport #859) by @mwisnicki #873 [5.3.x] Update play, play-docs-sbt-plugin, ... to 2.9.4 by @scala-steward #874 [5.3.x] Fix scala ste...

Mar 8, 2024

Play Slick 6.1.0

Download .zip

Finally comes with Scala 3 support thanks to Slick 3.5.0! 🥳

#827 slick 3.5.0 final release + other dependency upgrades by @mkurz #805 Slick 3.5.0-RC1 + Scala 3 support by @mkurz

Other Changes

#832...