forked from softwaremill/scala-sql-compare
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
executable file
·73 lines (64 loc) · 1.91 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import sbt._
import Keys._
name := "scala-sql-compare"
lazy val commonSettings = Seq(
organization := "com.softwaremill",
version := "1.0-SNAPSHOT",
scalaVersion := "2.12.15"
)
lazy val scalaSqlCompare = (project in file("."))
.settings(commonSettings)
.aggregate(slick, doobie, quill, scalikejdbc, ziosql)
lazy val common = (project in file("common"))
.settings(commonSettings)
.settings(
libraryDependencies ++= Seq(
"org.postgresql" % "postgresql" % "42.0.0",
"org.flywaydb" % "flyway-core" % "4.1.2")
)
lazy val slick = (project in file("slick"))
.settings(commonSettings)
.settings(
libraryDependencies ++= Seq(
"com.typesafe.slick" %% "slick" % "3.2.1"
)
)
.dependsOn(common)
lazy val doobie = (project in file("doobie"))
.settings(commonSettings)
.settings(
libraryDependencies ++= Seq(
"org.tpolecat" %% "doobie-postgres" % "0.5.0"
)
)
.dependsOn(common)
lazy val quill = (project in file("quill"))
.settings(commonSettings)
.settings(
libraryDependencies ++= Seq(
"ch.qos.logback" % "logback-classic" % "1.2.3",
"io.getquill" %% "quill-async-postgres" % "2.3.2"
)
)
.dependsOn(common)
lazy val scalikejdbc = (project in file("scalikejdbc"))
.settings(commonSettings)
.settings(
libraryDependencies ++= Seq(
"org.scalikejdbc" %% "scalikejdbc" % "3.2.1",
"org.scalikejdbc" %% "scalikejdbc-syntax-support-macro" % "3.2.1",
"ch.qos.logback" % "logback-classic" % "1.2.3"
)
)
.dependsOn(common)
lazy val ziosql = (project in file("ziosql"))
.settings(commonSettings)
.settings(
libraryDependencies ++= Seq(
"dev.zio" %% "zio-sql-postgres" % "0.1.2",
"dev.zio" %% "zio" % "2.0.7",
"org.postgresql" % "postgresql" % "42.2.24" % Compile,
"com.dimafeng" %% "testcontainers-scala-postgresql" % "0.39.12"
)
)
.dependsOn(common)