diff --git a/build.sbt b/build.sbt index 8c4b2984..0a9bdc18 100644 --- a/build.sbt +++ b/build.sbt @@ -41,7 +41,7 @@ def groupByName(tests: Seq[TestDefinition]): Seq[Group] = { } lazy val root = project.in(file(".")) - .aggregate(coreJS, coreJVM, driver, docs) // example, generator + .aggregate(coreJS, coreJVM, driver, monitor, docs) // example, generator .settings( publish := {}, publishLocal := {} @@ -82,6 +82,21 @@ lazy val driver = project.in(file("driver")) ) .dependsOn(coreJVM) +lazy val monitor = project.in(file("monitor")) + .settings( + name := "scarango-monitor", + fork := true, + Test / testGrouping := groupByName((Test / definedTests).value), + Test / testOptions += Tests.Argument("-oF"), + Test / parallelExecution := false, + libraryDependencies ++= Seq( + dep.spiceClient, + dep.scalaTest, + dep.catsEffectTesting + ) + ) + .dependsOn(driver) + lazy val generator = project.in(file("generator")) .settings( name := "scarango-generator", diff --git a/project/Dependencies.scala b/project/Dependencies.scala index 5ca020ea..fac12bab 100644 --- a/project/Dependencies.scala +++ b/project/Dependencies.scala @@ -20,11 +20,12 @@ object Dependencies { val scalaMeta: String = "4.8.7" + val spice: String = "0.2.0" + val scalaTest: String = "3.2.17" val catsEffectTesting: String = "1.5.0" } - val fabric: ModuleID = "org.typelevel" %% "fabric-io" % version.fabric val profig: ModuleID = "com.outr" %% "profig" % version.profig val scalaPass: ModuleID = "com.outr" %% "scalapass" % version.scalaPass @@ -35,6 +36,7 @@ object Dependencies { val scribe: ModuleID = "com.outr" %% "scribe" % version.scribe val scribeSlf4j: ModuleID = "com.outr" %% "scribe-slf4j2" % version.scribe val scalaMeta: ModuleID = "org.scalameta" %% "scalameta" % version.scalaMeta + val spiceClient: ModuleID = "com.outr" %% "spice-client-jvm" % version.spice val scalaTest: ModuleID = "org.scalatest" %% "scalatest" % version.scalaTest % "test" val catsEffectTesting: ModuleID = "org.typelevel" %% "cats-effect-testing-scalatest" % version.catsEffectTesting % "test"