All checks were successful
/ Build and Release Application (push) Successful in 2m26s
120 lines
3.1 KiB
Scala
120 lines
3.1 KiB
Scala
val scala3: String = "3.8.3"
|
|
|
|
ThisBuild / scalaVersion := scala3
|
|
ThisBuild / gsProjectName := "respite"
|
|
|
|
ThisBuild / externalResolvers := Seq(
|
|
"Garrity Software Mirror" at "https://maven.garrity.co/releases",
|
|
"Garrity Software Releases" at "https://maven.garrity.co/gs"
|
|
)
|
|
|
|
lazy val sharedSettings = Seq(
|
|
scalaVersion := scala3,
|
|
version := calVer.value,
|
|
publish / skip := true,
|
|
publishLocal / skip := true,
|
|
publishArtifact := false
|
|
)
|
|
|
|
val Deps = new {
|
|
val Cats = new {
|
|
val Core: ModuleID = "org.typelevel" %% "cats-core" % "2.13.0"
|
|
val Effect: ModuleID = "org.typelevel" %% "cats-effect" % "3.7.0"
|
|
}
|
|
|
|
val Fs2 = new {
|
|
private val Version: String = "3.13.0"
|
|
|
|
val Core: ModuleID = "co.fs2" %% "fs2-core" % Version
|
|
val IO: ModuleID = "co.fs2" %% "fs2-io" % Version
|
|
}
|
|
|
|
val Gs = new {
|
|
val Uuid: ModuleID = "gs" %% "gs-uuid-v0" % "0.4.2"
|
|
val Std: ModuleID = "gs" %% "gs-std-core-v0" % "0.1.3"
|
|
val Datagen: ModuleID = "gs" %% "gs-datagen-core-v0" % "0.4.1"
|
|
}
|
|
|
|
val Http4s = new {
|
|
private val Version: String = "1.0.0-M45"
|
|
|
|
val Core: ModuleID = "org.http4s" %% "http4s-core" % Version
|
|
val Dsl: ModuleID = "org.http4s" %% "http4s-dsl" % Version
|
|
val Circe: ModuleID = "org.http4s" %% "http4s-circe" % Version
|
|
val EmberServer: ModuleID = "org.http4s" %% "http4s-ember-server" % Version
|
|
}
|
|
|
|
val Circe = new {
|
|
private val Version: String = "0.14.15"
|
|
|
|
val Generic: ModuleID = "io.circe" %% "circe-generic" % Version
|
|
val Literal: ModuleID = "io.circe" %% "circe-literal" % Version
|
|
}
|
|
|
|
val Log4Cats = new {
|
|
val Slf4j: ModuleID = "org.typelevel" %% "log4cats-slf4j" % "2.8.0"
|
|
}
|
|
|
|
val LogbackClassic: ModuleID = "ch.qos.logback" % "logback-classic" % "1.5.32"
|
|
|
|
val MUnit: ModuleID = "org.scalameta" %% "munit" % "1.3.0"
|
|
}
|
|
|
|
lazy val testSettings = Seq(
|
|
libraryDependencies ++= Seq(
|
|
Deps.MUnit % Test,
|
|
Deps.Gs.Datagen % Test
|
|
)
|
|
)
|
|
|
|
lazy val respite = project
|
|
.in(file("."))
|
|
.aggregate(model, db, api)
|
|
.settings(sharedSettings)
|
|
.settings(name := s"${gsProjectName.value}")
|
|
|
|
lazy val model = project
|
|
.in(file("modules/model"))
|
|
.settings(sharedSettings)
|
|
.settings(testSettings)
|
|
.settings(name := s"${gsProjectName.value}-model")
|
|
.settings(
|
|
libraryDependencies ++= Seq(
|
|
Deps.Cats.Core,
|
|
Deps.Gs.Uuid,
|
|
Deps.Gs.Std
|
|
)
|
|
)
|
|
|
|
lazy val db = project
|
|
.in(file("modules/db"))
|
|
.dependsOn(model)
|
|
.settings(sharedSettings)
|
|
.settings(testSettings)
|
|
.settings(name := s"${gsProjectName.value}-db")
|
|
.settings(
|
|
libraryDependencies ++= Seq(
|
|
Deps.Cats.Core,
|
|
Deps.Cats.Effect
|
|
)
|
|
)
|
|
|
|
lazy val api = project
|
|
.in(file("modules/api"))
|
|
.dependsOn(model, db)
|
|
.settings(sharedSettings)
|
|
.settings(testSettings)
|
|
.settings(name := s"${gsProjectName.value}-api")
|
|
.settings(fork := true)
|
|
.settings(
|
|
libraryDependencies ++= Seq(
|
|
Deps.Http4s.Core,
|
|
Deps.Http4s.Dsl,
|
|
Deps.Http4s.Circe,
|
|
Deps.Http4s.EmberServer,
|
|
Deps.Circe.Generic,
|
|
Deps.Circe.Literal,
|
|
Deps.Log4Cats.Slf4j,
|
|
Deps.LogbackClassic
|
|
)
|
|
)
|