Skip to content

Commit 8ebb10a

Browse files
authored
Merge pull request #806 from mkurz/slick35_scala3_52x
[5.2.x] Slick 3.5.0-RC1 + Scala 3 support
2 parents cce7f50 + add9c9e commit 8ebb10a

File tree

8 files changed

+19
-13
lines changed

8 files changed

+19
-13
lines changed

.github/workflows/build-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55

66
push:
77
branches:
8-
- 5.2.x # Check branch after merge
8+
- 5.3.x # Check branch after merge
99

1010
concurrency:
1111
# Only run once for latest commit per ref and cancel other (previous) runs.
@@ -38,7 +38,7 @@ jobs:
3838
uses: playframework/.github/.github/workflows/cmd.yml@v3
3939
with:
4040
java: 17, 11
41-
scala: 2.13.x
41+
scala: 2.13.x, 3.x
4242
cmd: sbt ++$MATRIX_SCALA test
4343

4444
finish:

.github/workflows/dependency-graph.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Dependency Graph
22
on:
33
push:
44
branches:
5-
- 5.2.x
5+
- 5.3.x
66

77
concurrency:
88
# Only run once for latest commit per ref and cancel other (previous) runs.

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Publish
33
on:
44
push:
55
branches: # Snapshots
6-
- 5.2.x
6+
- 5.3.x
77
tags: ["**"] # Releases
88

99
jobs:

.github/workflows/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Release Drafter
33
on:
44
push:
55
branches:
6-
- 5.2.x
6+
- 5.3.x
77

88
jobs:
99
update_release_draft:

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ To use play-slick, you need to add the following dependencies:
3434

3535
```scala
3636
libraryDependencies ++= Seq(
37-
"com.typesafe.play" %% "play-slick" % "5.2.0",
38-
"com.typesafe.play" %% "play-slick-evolutions" % "5.2.0"
37+
"com.typesafe.play" %% "play-slick" % "5.3.0",
38+
"com.typesafe.play" %% "play-slick-evolutions" % "5.3.0"
3939
)
4040
```
4141

@@ -47,6 +47,7 @@ The Play Slick plugin supports several different versions of Play and Slick.
4747

4848
| Plugin version | Play version | Slick version | Scala version |
4949
|----------------|--------------|---------------|----------------------|
50+
| 5.3.x | 2.9.0 | 3.5.0+ | 2.13.x/3.3.x |
5051
| 5.2.x | 2.9.0 | 3.4.1 | 2.13.x |
5152
| 5.1.x | 2.8.16 | 3.4.1+ | 2.12.x/2.13.x |
5253
| 5.0.x | 2.8.x | 3.3.2+ | 2.12.x/2.13.x |

build.sbt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ lazy val commonSettings = Seq(
2020
// Work around https://issues.scala-lang.org/browse/SI-9311
2121
scalacOptions ~= (_.filterNot(_ == "-Xfatal-warnings")),
2222
scalaVersion := "2.13.12",
23-
crossScalaVersions := Seq("2.13.12"),
23+
crossScalaVersions := Seq("2.13.12", "3.3.1"),
2424
pomExtra := scala.xml.NodeSeq.Empty, // Can be removed when dropping interplay
2525
developers += Developer(
2626
"playframework",
@@ -45,6 +45,7 @@ lazy val `play-slick` = (project in file("src/core"))
4545
.settings(mimaSettings)
4646
.settings(
4747
mimaBinaryIssueFilters ++= Seq(
48+
ProblemFilters.exclude[DirectMissingMethodProblem]("play.api.db.slick.HasDatabaseConfig.db"),
4849
)
4950
)
5051
.settings(commonSettings)
@@ -73,7 +74,11 @@ val previousVersion: Option[String] = Some("5.2.0")
7374
ThisBuild / mimaFailOnNoPrevious := false
7475

7576
def mimaSettings = Seq(
76-
mimaPreviousArtifacts := previousVersion.map(organization.value %% moduleName.value % _).toSet,
77+
mimaPreviousArtifacts := (if (CrossVersion.binaryScalaVersion(scalaVersion.value) == "3") {
78+
Set.empty
79+
} else {
80+
previousVersion.map(organization.value %% moduleName.value % _).toSet
81+
}),
7782
mimaBinaryIssueFilters := Seq(
7883
)
7984
)
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// #add-library-dependencies
2-
libraryDependencies += "com.typesafe.play" %% "play-slick" % "5.2.0"
2+
libraryDependencies += "com.typesafe.play" %% "play-slick" % "5.3.0"
33
// #add-library-dependencies
44

55
// #add-dependency-with-evolutions
66
libraryDependencies ++= Seq(
7-
"com.typesafe.play" %% "play-slick" % "5.2.0",
8-
"com.typesafe.play" %% "play-slick-evolutions" % "5.2.0"
7+
"com.typesafe.play" %% "play-slick" % "5.3.0",
8+
"com.typesafe.play" %% "play-slick-evolutions" % "5.3.0"
99
)
1010
// #add-dependency-with-evolutions

project/Dependencies.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ object Dependencies {
2121
object Version {
2222
val play = _root_.play.core.PlayVersion.current
2323

24-
val slick = "3.4.1"
24+
val slick = "3.5.0-RC1"
2525
val h2 = "2.2.224"
2626
}
2727

0 commit comments

Comments
 (0)