From 3b54a7bb569da892cf5e7f68f3956fe272e6398f Mon Sep 17 00:00:00 2001 From: Kevin Lee Date: Sun, 31 Dec 2023 17:54:09 +1100 Subject: [PATCH] Close #352 - Add refined4s as a dependency library for Scala 3 --- build.sbt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index 7732232..c48bdf7 100644 --- a/build.sbt +++ b/build.sbt @@ -55,7 +55,7 @@ lazy val core = module("core") libraryDependencies ++= { val scalaV = scalaVersion.value if (scalaV.startsWith("3")) - List(libs.catsLib, libs.scalaXml) + List(libs.catsLib, libs.scalaXml) ++ libs.refined4s else List(libs.newTypeLib, libs.catsLib, libs.scalaXml) }, @@ -145,6 +145,8 @@ lazy val props = val ScalaXml2Version = "2.1.0" + val Refined4sVersion = "0.7.0" + val ExtrasVersion = "0.44.0" } @@ -176,6 +178,11 @@ lazy val libs = lazy val newTypeLib = "io.estatico" %% "newtype" % "0.4.4" + lazy val refined4s = List( + "io.kevinlee" %% "refined4s-core" % props.Refined4sVersion, + "io.kevinlee" %% "refined4s-cats" % props.Refined4sVersion, + ) + lazy val extrasCats = "io.kevinlee" %% "extras-cats" % props.ExtrasVersion lazy val extrasScalaIo = "io.kevinlee" %% "extras-scala-io" % props.ExtrasVersion lazy val extrasAll = List(extrasCats, extrasScalaIo)