@@ -4,7 +4,7 @@ import sbt.dsl.LinterLevel.Ignore
4
4
// Library versions all in one place, for convenience and sanity.
5
5
lazy val catsVersion = " 2.6.0"
6
6
lazy val catsEffectVersion = " 2.5.0"
7
- lazy val circeVersion = " 0.13.0 "
7
+ lazy val circeVersion = settingKey[ String ]( " Circe version. " )
8
8
lazy val fs2Version = " 2.5.5"
9
9
lazy val h2Version = " 1.4.200"
10
10
lazy val hikariVersion = " 3.4.5" // N.B. Hikari v4 introduces a breaking change via slf4j v2
@@ -121,6 +121,14 @@ lazy val commonSettings =
121
121
old
122
122
},
123
123
124
+ circeVersion := {
125
+ scalaVersion.value match {
126
+ case `scala30Version` => " 0.14.0-M6"
127
+ case `scala30VersionOld` => " 0.14.0-M5"
128
+ case _ => " 0.13.0"
129
+ }
130
+ }
131
+
124
132
)
125
133
126
134
lazy val publishSettings = Seq (
@@ -324,11 +332,10 @@ lazy val `postgres-circe` = project
324
332
name := " doobie-postgres-circe" ,
325
333
description := " Postgres circe support for doobie." ,
326
334
libraryDependencies ++= Seq (
327
- " io.circe" %% " circe-core" % circeVersion,
328
- " io.circe" %% " circe-parser" % circeVersion
335
+ " io.circe" %% " circe-core" % circeVersion.value ,
336
+ " io.circe" %% " circe-parser" % circeVersion.value
329
337
)
330
338
)
331
- .settings(noDottySettings)
332
339
333
340
lazy val h2 = project
334
341
.in(file(" modules/h2" ))
@@ -411,9 +418,9 @@ lazy val docs = project
411
418
scalacOptions := Nil ,
412
419
413
420
libraryDependencies ++= Seq (
414
- " io.circe" %% " circe-core" % circeVersion,
415
- " io.circe" %% " circe-generic" % circeVersion,
416
- " io.circe" %% " circe-parser" % circeVersion,
421
+ " io.circe" %% " circe-core" % circeVersion.value ,
422
+ " io.circe" %% " circe-generic" % circeVersion.value ,
423
+ " io.circe" %% " circe-parser" % circeVersion.value ,
417
424
" io.monix" %% " monix-eval" % monixVersion,
418
425
),
419
426
fork in Test := true ,
0 commit comments