Skip to content

Commit

Permalink
Merge pull request #683 from OlegYch/play3
Browse files Browse the repository at this point in the history
add support for play3
  • Loading branch information
tminglei authored Jan 23, 2024
2 parents 9f45ada + 3c63148 commit 55d0c85
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 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
13 changes: 8 additions & 5 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",
description := s"Slick extensions for PostgreSQL - play-json${suffix} 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 55d0c85

Please sign in to comment.