add pg-async module
This commit is contained in:
parent
73bad1448d
commit
f2828ef494
5 changed files with 256 additions and 15 deletions
36
build.sbt
36
build.sbt
|
@ -1,23 +1,37 @@
|
|||
val prjScalaVersion = "3.7.1"
|
||||
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"
|
||||
)
|
||||
)
|
||||
|
||||
lazy val root = (project in file("."))
|
||||
.aggregate(core, pgAsync)
|
||||
|
||||
lazy val pgAsync = (project in file("pg-async"))
|
||||
.dependsOn(core)
|
||||
.aggregate(core)
|
||||
.settings(commonSettings: _*)
|
||||
.settings(
|
||||
name := "minisql",
|
||||
scalaVersion := prjScalaVersion
|
||||
name := "minisql-pg-async",
|
||||
libraryDependencies ++= Seq(
|
||||
"org.typelevel" %% "cats-effect" % catsEffectVersion,
|
||||
"com.dripower" %% "postgresql-async" % pgAsyncVersion
|
||||
)
|
||||
)
|
||||
|
||||
lazy val core = (project in file("core"))
|
||||
.settings(commonSettings: _*)
|
||||
.settings(
|
||||
name := "minisql-core",
|
||||
scalaVersion := prjScalaVersion,
|
||||
name := "minisql-core",
|
||||
libraryDependencies ++= Seq(
|
||||
"org.scalameta" %% "munit" % "1.1.1" % Test
|
||||
),
|
||||
scalacOptions ++= Seq(
|
||||
"-deprecation",
|
||||
"-feature",
|
||||
"-source:3.7-migration",
|
||||
"-rewrite"
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue