Skip to content

Commit

Permalink
reactivemongo: Only depend on the bson-api, noshaded variant (#270)
Browse files Browse the repository at this point in the history
There is no need to pull in reactivemongo, the driver, since all we are
concerned with is the BSON API.

Also, starting with version 0.19.6, there are now two variants, a noshaded
version and a version which has Netty integrated into it for projects using
Netty themselves avoiding incompatibilities.

Since we do not know in advance which library is choosen in a project, make the
dependency a "provided" one.
  • Loading branch information
avdv committed Feb 22, 2020
1 parent ee058f1 commit bf5ac1d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ lazy val scalaTestVersion = "3.0.8"
lazy val scalacheckVersion = "1.14.0"

// Library versions
lazy val reactiveMongoVersion = "0.19.4"
lazy val reactiveMongoVersion = "0.20.3"
lazy val argonautVersion = "6.2.3"
lazy val json4sVersion = "3.6.6"
lazy val quillVersion = "3.5.0"
Expand Down Expand Up @@ -241,9 +241,9 @@ lazy val enumeratumReactiveMongoBson =
version := "1.5.16-SNAPSHOT",
crossScalaVersions := scalaVersionsAll,
libraryDependencies ++= Seq(
"org.reactivemongo" %% "reactivemongo" % reactiveMongoVersion,
"com.beachape" %% "enumeratum" % Versions.Core.stable,
"com.beachape" %% "enumeratum-test" % Versions.Core.stable % Test
"org.reactivemongo" %% "reactivemongo-bson-api" % s"$reactiveMongoVersion-noshaded" % Provided,
"com.beachape" %% "enumeratum" % Versions.Core.stable,
"com.beachape" %% "enumeratum-test" % Versions.Core.stable % Test
)
)

Expand Down

0 comments on commit bf5ac1d

Please sign in to comment.