Skip to content

Commit

Permalink
Merge pull request #604 from kevin-lee/task/601/effectie-time
Browse files Browse the repository at this point in the history
Close #601 - Add `effectie-time` module
  • Loading branch information
kevin-lee committed Jan 7, 2024
2 parents 82397b4 + 2cc8a91 commit b45c5e0
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ lazy val effectie = (project in file("."))
coreJs,
syntaxJvm,
syntaxJs,
timeJvm,
timeJs,
catsJvm,
catsJs,
catsEffect2Jvm,
Expand Down Expand Up @@ -149,6 +151,35 @@ lazy val testing4CatsJs = testing4Cats
.js
.settings(jsSettings)

lazy val time = module(ProjectName("time"), crossProject(JVMPlatform, JSPlatform))
.settings(
description := "Effect - Time",
libraryDependencies ++= List(
libs.libCatsCore(props.catsVersion),
libs.tests.extrasConcurrent,
libs.tests.extrasConcurrentTesting,
) ++ (
if (scalaVersion.value.startsWith("2.12"))
List(libs.libCatsEffect(props.catsEffect2Version) % Test)
else
List(libs.libCatsEffect(props.catsEffect2LatestVersion) % Test)
),
libraryDependencies :=
libraryDependenciesPostProcess(isScala3(scalaVersion.value), libraryDependencies.value),
)
.dependsOn(
core % props.IncludeTest,
syntax,
catsEffect2 % Test,
testing4Cats % Test,
)

lazy val timeJvm = time.jvm
lazy val timeJs = time
.js
.settings(jsSettingsForFuture)
.settings(jsSettings)

lazy val catsEffect2 = module(ProjectName("cats-effect2"), crossProject(JVMPlatform, JSPlatform))
.settings(
description := "Effect Utils - Cats Effect 2",
Expand Down

0 comments on commit b45c5e0

Please sign in to comment.