minisql/build.sbt

38 lines
871 B
Text
Raw Normal View History

2025-07-24 12:59:38 +08:00
val pgAsyncVersion = "0.3.124"
val catsEffectVersion = "3.6.2"
val commonSettings = Seq(
organization := "minisql",
scalaVersion := "3.7.1",
scalacOptions ++= Seq(
"-deprecation",
"-feature",
"-source:3.7-migration",
"-rewrite"
)
)
2024-07-20 20:43:20 +08:00
2025-07-23 10:41:29 +08:00
lazy val root = (project in file("."))
2025-07-24 12:59:38 +08:00
.aggregate(core, pgAsync)
lazy val pgAsync = (project in file("pg-async"))
.dependsOn(core)
2025-07-23 10:41:29 +08:00
.aggregate(core)
2025-07-24 12:59:38 +08:00
.settings(commonSettings: _*)
2025-07-23 10:41:29 +08:00
.settings(
2025-07-24 12:59:38 +08:00
name := "minisql-pg-async",
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-effect" % catsEffectVersion,
"com.dripower" %% "postgresql-async" % pgAsyncVersion
)
2025-07-23 10:41:29 +08:00
)
2024-07-20 20:43:20 +08:00
2025-07-23 10:41:29 +08:00
lazy val core = (project in file("core"))
2025-07-24 12:59:38 +08:00
.settings(commonSettings: _*)
2025-07-23 10:41:29 +08:00
.settings(
2025-07-24 12:59:38 +08:00
name := "minisql-core",
2025-07-23 10:41:29 +08:00
libraryDependencies ++= Seq(
"org.scalameta" %% "munit" % "1.1.1" % Test
)
)