Skip to content

Commit

Permalink
Release 1.1.0-RC12 (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
cchantep authored Dec 21, 2023
1 parent 2870778 commit c338823
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 23 deletions.
2 changes: 2 additions & 0 deletions .spelling
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ Netcat
Netty
OOM
PEM
Pekko
Play2-ReactiveMongo
QueryBuilderFactory.this.pack.Reader
ReactiveMongo
Expand Down Expand Up @@ -216,6 +217,7 @@ NettyPack
2.5.x
2.6.x
4.1.x
1.0.x.

# Jekyll workaround
index.html
Expand Down
4 changes: 2 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ kramdown:
input: GFM
syntax_highlighter: rouge
latest_major_release: 1.0
latest_release: 1.1.0-RC11
latest_release: 1.1.0-RC12
exclude: [vendor,target]
plugins:
- jekyll-sitemap
Expand All @@ -22,7 +22,7 @@ _0_1x_latest_minor: 0.20.13
_0_1x_scala_major: 2.12

_1_0_latest_major: 1.1
_1_0_latest_minor: 1.1.0-RC11
_1_0_latest_minor: 1.1.0-RC12
_1_0_scala_major: 2.13

algolia:
Expand Down
9 changes: 4 additions & 5 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ lazy val `reactivemongo-site` = (project in file("."))
scalaVersion := "2.11.12",
ThisBuild / scalacOptions ++= Seq("-Ywarn-unused-import", "-unchecked"),
libraryDependencies ++= Seq(
"org.reactivemongo" %% "reactivemongo" % "1.1.0-RC11"),
ThisBuild / resolvers ++= Seq(
Resolver.typesafeRepo("releases"),
Resolver.sonatypeRepo("snapshots"),
Resolver.sonatypeRepo("staging")))
"org.reactivemongo" %% "reactivemongo" % "1.1.0-RC12"),
ThisBuild / resolvers ++= (
Resolver.typesafeRepo("releases") +: (
Resolver.sonatypeOssRepos("snapshots") ++ Resolver.sonatypeOssRepos("staging"))))
.aggregate(release_0_1x, release_1_0)

organization := "org.reactivemongo"
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.8.2
sbt.version=1.9.7
8 changes: 4 additions & 4 deletions releases/1.0/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ organization := "org.reactivemongo"

name := "release_1_0"

version := "1.1.0-RC11"
version := "1.1.0-RC12"

scalaVersion := "2.12.17"
scalaVersion := "2.12.18"

libraryDependencies ++= Seq(
"reactivemongo-akkastream",
Expand All @@ -20,8 +20,8 @@ libraryDependencies ++= Seq(
libraryDependencies ++= {
val idx = version.value.lastIndexOf('-')
val playVer = version.value.splitAt(idx) match {
case ("", major) => s"${major}-play27"
case (major, mod) => s"${major}-play27${mod}"
case ("", major) => s"${major}.play27"
case (major, mod) => s"${major}.play27${mod}"
}

Seq("play2-reactivemongo", "reactivemongo-play-json-compat").map(
Expand Down
4 changes: 2 additions & 2 deletions releases/1.0/documentation/json/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ You can setup the Play JSON compatibility for ReactiveMongo by adding the follow

```ocaml
libraryDependencies ++= Seq(
"org.reactivemongo" %% "reactivemongo-play-json-compat" % "{{site._1_0_latest_minor}}-play29" // For Play 2.9.x (ajust accordingly)
"org.reactivemongo" %% "reactivemongo-play-json-compat" % "{{site._1_0_latest_minor}}.play29" // For Play 2.9.x (ajust accordingly)
)
```

Expand Down Expand Up @@ -41,7 +41,7 @@ import reactivemongo.play.json.compat._
def foo(v: BSONValue): JsValue = v // ValueConverters.fromValue
```

**API documentations:** [ReactiveMongo Play JSON API](https://oss.sonatype.org/service/local/repositories/releases/archive/org/reactivemongo/reactivemongo-play-json_{{site._1_0_scala_major}}/{{site._1_0_latest_minor}}-play28/reactivemongo-play-json_{{site._1_0_scala_major}}-{{site._1_0_latest_minor}}-play29-javadoc.jar/!/index.html)
**API documentations:** [ReactiveMongo Play JSON API](https://oss.sonatype.org/service/local/repositories/releases/archive/org/reactivemongo/reactivemongo-play-json_{{site._1_0_scala_major}}/{{site._1_0_latest_minor}}.play28/reactivemongo-play-json_{{site._1_0_scala_major}}-{{site._1_0_latest_minor}}.play29-javadoc.jar/!/index.html)

> If you want to use this JSON serialization outside of Play application, the dependency to the standalone Play JSON library must then be added: `"com.typesafe.play" %% "play-json" % version`.
Expand Down
23 changes: 14 additions & 9 deletions releases/1.0/documentation/tutorial/play.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,29 @@ This module is based on the [Play JSON serialization](../json/overview.html).
The latest version of this plugin is for Play 2.5+, and can be enabled by adding the following dependency in your `project/Build.scala` (or `build.sbt`).

```ocaml
// only for Play 2.9.x (Scala 2.13+)
libraryDependencies ++= Seq(
"org.reactivemongo" %% "play2-reactivemongo" % "{{site._1_0_latest_minor}}.play29"
)
// only for Play 2.8.x (Scala 2.12)
libraryDependencies ++= Seq(
"org.reactivemongo" %% "play2-reactivemongo" % "{{site._1_0_latest_minor}}-play28"
"org.reactivemongo" %% "play2-reactivemongo" % "{{site._1_0_latest_minor}}.play28"
)
// only for Play 2.7.x (Scala 2.12)
libraryDependencies ++= Seq(
"org.reactivemongo" %% "play2-reactivemongo" % "{{site._1_0_latest_minor}}-play27"
"org.reactivemongo" %% "play2-reactivemongo" % "{{site._1_0_latest_minor}}.play27"
)
// only for Play 2.6.x (Scala 2.12)
libraryDependencies ++= Seq(
"org.reactivemongo" %% "play2-reactivemongo" % "{{site._1_0_latest_minor}}-play26"
"org.reactivemongo" %% "play2-reactivemongo" % "{{site._1_0_latest_minor}}.play26"
)
// only for Play 2.5.x (Scala 2.11)
libraryDependencies ++= Seq(
"org.reactivemongo" %% "play2-reactivemongo" % "{{site._1_0_latest_minor}}-play25"
"org.reactivemongo" %% "play2-reactivemongo" % "{{site._1_0_latest_minor}}.play25"
)
```

Expand All @@ -40,17 +45,17 @@ libraryDependencies ++= Seq(
As for Play itself, this ReactiveMongo plugin requires a JVM 1.8+.

The [API of this Play module](https://oss.sonatype.org/service/local/repositories/releases/archive/org/reactivemongo/play2-reactivemongo_{{site._1_0_scala_major}}/{{site._1_0_latest_minor}}-play26/play2-reactivemongo_{{site._1_0_scala_major}}-{{site._1_0_latest_minor}}-play26-javadoc.jar/!/index.html) can be browsed online.
The [API of this Play module](https://oss.sonatype.org/service/local/repositories/releases/archive/org/reactivemongo/play2-reactivemongo_{{site._1_0_scala_major}}/{{site._1_0_latest_minor}}.play26/play2-reactivemongo_{{site._1_0_scala_major}}-{{site._1_0_latest_minor}}.play26-javadoc.jar/!/index.html) can be browsed online.

The API for the standalone JSON serialization is [also available](https://oss.sonatype.org/service/local/repositories/releases/archive/org/reactivemongo/reactivemongo-play-json_{{site._1_0_scala_major}}/{{site._1_0_latest_minor}}-play26/reactivemongo-play-json_{{site._1_0_scala_major}}-{{site._1_0_latest_minor}}-play26-javadoc.jar/!/index.html).
The API for the standalone JSON serialization is [also available](https://oss.sonatype.org/service/local/repositories/releases/archive/org/reactivemongo/reactivemongo-play-json_{{site._1_0_scala_major}}/{{site._1_0_latest_minor}}.play26/reactivemongo-play-json_{{site._1_0_scala_major}}-{{site._1_0_latest_minor}}.play26-javadoc.jar/!/index.html).

If you want to use the latest snapshot, add the following instead (only for play > 2.4):

```ocaml
resolvers += "Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/"
libraryDependencies ++= Seq(
"org.reactivemongo" %% "play2-reactivemongo" % "{{site._1_0_latest_snapshot}}-play28"
"org.reactivemongo" %% "play2-reactivemongo" % "{{site._1_0_latest_snapshot}}.play28"
)
```

Expand All @@ -60,7 +65,7 @@ libraryDependencies ++= Seq(

**`ReactiveMongoPlugin` is deprecated, long live to `ReactiveMongoModule` and `ReactiveMongoApi`**.

Play has deprecated the plugins in version 2.4, therefore it is recommended to remove the former `ReactiveMongoPlugin` from your project. It must be replaced it by `ReactiveMongoModule` and [`ReactiveMongoApi`](https://oss.sonatype.org/service/local/repositories/releases/archive/org/reactivemongo/play2-reactivemongo_{{site._1_0_scala_major}}/{{site._1_0_latest_minor}}-play26/play2-reactivemongo_{{site._1_0_scala_major}}-{{site._1_0_latest_minor}}-play26-javadoc.jar/!/index.html#play.modules.reactivemongo.ReactiveMongoApi) which is the interface to MongoDB.
Play has deprecated the plugins in version 2.4, therefore it is recommended to remove the former `ReactiveMongoPlugin` from your project. It must be replaced it by `ReactiveMongoModule` and [`ReactiveMongoApi`](https://oss.sonatype.org/service/local/repositories/releases/archive/org/reactivemongo/play2-reactivemongo_{{site._1_0_scala_major}}/{{site._1_0_latest_minor}}.play26/play2-reactivemongo_{{site._1_0_scala_major}}-{{site._1_0_latest_minor}}.play26-javadoc.jar/!/index.html#play.modules.reactivemongo.ReactiveMongoApi) which is the interface to MongoDB.

Thus, the dependency injection can be configured, so that the your controllers are given the new ReactiveMongo API.
First, Add the line bellow to `application.conf`:
Expand All @@ -87,7 +92,7 @@ class MyController @Inject() (
}
```

The traits [`ReactiveMongoComponents`](https://oss.sonatype.org/service/local/repositories/releases/archive/org/reactivemongo/play2-reactivemongo_{{site._1_0_scala_major}}/{{site._1_0_latest_minor}}-play26/play2-reactivemongo_{{site._1_0_scala_major}}-{{site._1_0_latest_minor}}-play26-javadoc.jar/!/index.html#play.modules.reactivemongo.ReactiveMongoComponents) and [`ReactiveMongoApiComponents`](https://oss.sonatype.org/service/local/repositories/releases/archive/org/reactivemongo/play2-reactivemongo_{{site._1_0_scala_major}}/{{site._1_0_latest_minor}}-play26/play2-reactivemongo_{{site._1_0_scala_major}}-{{site._1_0_latest_minor}}-play26-javadoc.jar/!/index.html#play.modules.reactivemongo.ReactiveMongoApiComponents) can be used for [compile-time dependency injection](https://playframework.com/documentation/latest/ScalaCompileTimeDependencyInjection).
The traits [`ReactiveMongoComponents`](https://oss.sonatype.org/service/local/repositories/releases/archive/org/reactivemongo/play2-reactivemongo_{{site._1_0_scala_major}}/{{site._1_0_latest_minor}}.play26/play2-reactivemongo_{{site._1_0_scala_major}}-{{site._1_0_latest_minor}}.play26-javadoc.jar/!/index.html#play.modules.reactivemongo.ReactiveMongoComponents) and [`ReactiveMongoApiComponents`](https://oss.sonatype.org/service/local/repositories/releases/archive/org/reactivemongo/play2-reactivemongo_{{site._1_0_scala_major}}/{{site._1_0_latest_minor}}.play26/play2-reactivemongo_{{site._1_0_scala_major}}-{{site._1_0_latest_minor}}.play26-javadoc.jar/!/index.html#play.modules.reactivemongo.ReactiveMongoApiComponents) can be used for [compile-time dependency injection](https://playframework.com/documentation/latest/ScalaCompileTimeDependencyInjection).

```scala
import javax.inject.Inject
Expand Down

0 comments on commit c338823

Please sign in to comment.