Skip to content

Commit

Permalink
Update to Play 2.9
Browse files Browse the repository at this point in the history
Update sbt, plugins, and other dependencies to support running with Play 2.9
because Play 2.8 is out of support at the end of May 2024.

See here for more information <https://www.playframework.com/documentation/2.9.x/Highlights29>.

Specifically the updates are:

- `build.properties` sbt version is updated from `1.7.2` to `1.9.9`
- `project/plugins.sbt` Play sbt plugin is updated from `2.8.21` to `2.9.3`.
- `build.sbt` supporting dependencies
  - `sangria-play-json`: 2.0.1 -> 2.0.2
  - `sangria`: 2.0.1 -> 4.0.2
  - `play-json-joda`: 2.8.2 -> 2.10.5
  - `play-json`: 2.8.2 -> 2.10.5
  - `joda-time`: 2.12.0 -> 2.12.7
  • Loading branch information
ljdelight committed May 19, 2024
1 parent f6ae362 commit 6fd987c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
10 changes: 5 additions & 5 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ libraryDependencies ++= Seq(
guice,
// NOTE: Be careful upgrading sangria and play-json as binary incompatibilities can break graphql and the entire UI.
// See the compatibility matrix here https://github.com/sangria-graphql/sangria-play-json
"org.sangria-graphql" %% "sangria-play-json" % "2.0.1",
"org.sangria-graphql" %% "sangria" % "2.0.1",
"com.typesafe.play" %% "play-json-joda" % "2.8.2",
"com.typesafe.play" %% "play-json" % "2.8.2",
"org.sangria-graphql" %% "sangria-play-json" % "2.0.2",
"org.sangria-graphql" %% "sangria" % "4.0.2",
"com.typesafe.play" %% "play-json-joda" % "2.10.5",
"com.typesafe.play" %% "play-json" % "2.10.5",
"org.scalatestplus.play" %% "scalatestplus-play" % "5.1.0" % Test,
"org.scalatestplus" %% "mockito-4-5" % "3.2.12.0" % Test,
// NOTE: The swagger-ui package is used to obtain the static distribution of swagger-ui, the files included at runtime
Expand All @@ -99,7 +99,7 @@ libraryDependencies ++= Seq(
// At some point other libraries will need to be updated to use the ServiceLoader mechanism and we can remove this.
// See https://www.slf4j.org/codes.html#ignoredBindings
"net.postgis" % "postgis-jdbc" % "2023.1.0" exclude ("org.slf4j", "slf4j-api"), // https://github.com/postgis/postgis-java/releases
"joda-time" % "joda-time" % "2.12.0",
"joda-time" % "joda-time" % "2.12.7",
// https://github.com/locationtech/jts/releases
"org.locationtech.jts" % "jts-core" % "1.19.0",
"org.wololo" % "jts2geojson" % "0.18.1", // https://github.com/bjornharrtell/jts2geojson/releases
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# https://github.com/sbt/sbt/releases
sbt.version=1.7.2
sbt.version=1.9.9
7 changes: 6 additions & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ logLevel := Level.Warn
addDependencyTreePlugin

// https://github.com/playframework/playframework/releases
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.8.21")
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.9.3")

addSbtPlugin("com.typesafe.sbt" % "sbt-gzip" % "1.0.2")

Expand All @@ -20,3 +20,8 @@ addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.10.3")
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.11.0")

addSbtPlugin("com.github.sbt" % "sbt-git" % "2.0.1")

// https://github.com/sbt/sbt/issues/6997
ThisBuild / libraryDependencySchemes ++= Seq(
"org.scala-lang.modules" %% "scala-xml" % VersionScheme.Always
)

0 comments on commit 6fd987c

Please sign in to comment.