Skip to content

Commit

Permalink
add support for play3
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegYch committed Jan 3, 2024
1 parent 9f45ada commit aeec00a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ Here's the related technical details:
| `slickpg` MacAddrString | macaddr | no 3rd party dependencies |
| `slickpg` JsonString | json | no 3rd party dependencies |
| `json4s` JValue | json | `json4s` v3.6.6 |
| `play-json` JsValue | json | `play-json` v2.7.4 |
| `play-json` JsValue | json | `play-json` v2.10 or v3.0 |
| `spray-json` JsValue | json | `spray-json` v1.3.5 |
| `argonaut json` Json | json | `argonaut` v6.2.3 |
| `circe json` Json | json | `circe` v0.11.2 / v0.12.3 |
Expand Down Expand Up @@ -220,6 +220,8 @@ libraryDependencies += "com.github.tminglei" %% "slick-pg_json4s" % "0.22.0-M4"
> If you need `play-json` support, pls append dependency:
```scala
libraryDependencies += "com.github.tminglei" %% "slick-pg_play-json" % "0.22.0-M4"
or
libraryDependencies += "com.github.tminglei" %% "slick-pg_play-json3" % "0.22.0-M4"
```

> If you need `spray-json` support, pls append dependency:
Expand Down
11 changes: 7 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ lazy val slickPg = (project in file("."))
libraryDependencies := mainDependencies(scalaVersion.value)
)
.dependsOn (slickPgCore % "test->test;compile->compile")
.aggregate (slickPgCore, slickPgJoda, slickPgJson4s, slickPgJts, slickPgJtsLt, slickPgPlayJson, slickPgSprayJson, slickPgCirceJson, slickPgArgonaut, slickPgJawn)
.aggregate (slickPgCore, slickPgJoda, slickPgJson4s, slickPgJts, slickPgJtsLt, slickPgPlayJson, slickPgPlayJson3, slickPgSprayJson, slickPgCirceJson, slickPgArgonaut, slickPgJawn)

lazy val slickPgJoda = (project in file("./addons/joda-time"))
.settings(commonSettings)
Expand Down Expand Up @@ -140,16 +140,19 @@ lazy val slickPgJtsLt = (project in file("./addons/jts_lt"))
)
.dependsOn (slickPgCore % "test->test;compile->compile")

lazy val slickPgPlayJson = (project in file("./addons/play-json"))
def slickPgPlayJson0(play: ModuleID, suffix: String) = Project("slick-pg_play-json" + suffix, file("./addons/play-json"))
.settings(commonSettings)
.settings(
name := "slick-pg_play-json",
description := "Slick extensions for PostgreSQL - play-json module",
target := target.value / suffix,
libraryDependencies := mainDependencies(scalaVersion.value) ++
Seq("com.typesafe.play" %% "play-json" % "2.10.3")
Seq(play)
)
.dependsOn (slickPgCore % "test->test;compile->compile")

lazy val slickPgPlayJson = slickPgPlayJson0("com.typesafe.play" %% "play-json" % "2.10.3", "")
lazy val slickPgPlayJson3 = slickPgPlayJson0("org.playframework" %% "play-json" % "3.0.1", "3")

lazy val slickPgSprayJson = (project in file("./addons/spray-json"))
.settings(commonSettings)
.settings(
Expand Down

0 comments on commit aeec00a

Please sign in to comment.