-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathbuild.sbt
101 lines (95 loc) · 3.56 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
ThisBuild / organization := "com.augustnagro"
ThisBuild / version := "2.0.0-SNAPSHOT"
ThisBuild / versionScheme := Some("early-semver")
ThisBuild / scalaVersion := "3.3.4"
ThisBuild / scalacOptions ++= Seq("-deprecation")
ThisBuild / homepage := Some(url("https://github.com/AugustNagro/magnum"))
ThisBuild / licenses += (
"Apache-2.0",
url(
"https://opensource.org/licenses/Apache-2.0"
)
)
ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/AugustNagro/magnum"),
"scm:git:[email protected]:augustnagro/magnum.git",
Some("scm:git:[email protected]:augustnagro/magnum.git")
)
)
ThisBuild / developers := List(
Developer(
id = "[email protected]",
name = "August Nagro",
email = "[email protected]",
url = url("https://augustnagro.com")
)
)
ThisBuild / publishMavenStyle := true
ThisBuild / pomIncludeRepository := { _ => false }
ThisBuild / publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
ThisBuild / publish / skip := true
addCommandAlias("fmt", "scalafmtAll")
val testcontainersVersion = "0.41.4"
val circeVersion = "0.14.10"
val munitVersion = "1.1.0"
val postgresDriverVersion = "42.7.4"
lazy val root = project
.in(file("."))
.aggregate(magnum, magnumPg, magnumZio)
lazy val magnum = project
.in(file("magnum"))
.settings(
Test / fork := true,
publish / skip := false,
libraryDependencies ++= Seq(
"org.scalameta" %% "munit" % munitVersion % Test,
"com.dimafeng" %% "testcontainers-scala-munit" % testcontainersVersion % Test,
"com.dimafeng" %% "testcontainers-scala-postgresql" % testcontainersVersion % Test,
"org.postgresql" % "postgresql" % postgresDriverVersion % Test,
"com.dimafeng" %% "testcontainers-scala-mysql" % testcontainersVersion % Test,
"com.mysql" % "mysql-connector-j" % "9.0.0" % Test,
"com.h2database" % "h2" % "2.3.232" % Test,
"com.dimafeng" %% "testcontainers-scala-oracle-xe" % testcontainersVersion % Test,
"com.oracle.database.jdbc" % "ojdbc11" % "21.9.0.0" % Test,
"com.dimafeng" %% "testcontainers-scala-clickhouse" % testcontainersVersion % Test,
"com.clickhouse" % "clickhouse-jdbc" % "0.6.0" % Test classifier "http",
"org.xerial" % "sqlite-jdbc" % "3.46.1.3" % Test
)
)
lazy val magnumPg = project
.in(file("magnum-pg"))
.dependsOn(magnum)
.settings(
Test / fork := true,
publish / skip := false,
libraryDependencies ++= Seq(
"org.postgresql" % "postgresql" % postgresDriverVersion % "provided",
"org.scalameta" %% "munit" % munitVersion % Test,
"com.dimafeng" %% "testcontainers-scala-munit" % testcontainersVersion % Test,
"com.dimafeng" %% "testcontainers-scala-postgresql" % testcontainersVersion % Test,
"io.circe" %% "circe-core" % circeVersion % Test,
"io.circe" %% "circe-parser" % circeVersion % Test,
"org.scala-lang.modules" %% "scala-xml" % "2.3.0" % Test
)
)
lazy val magnumZio = project
.in(file("magnum-zio"))
.dependsOn(magnum)
.settings(
Test / fork := true,
publish / skip := false,
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % "2.1.12" % Provided,
"org.scalameta" %% "munit" % munitVersion % Test,
"com.dimafeng" %% "testcontainers-scala-munit" % testcontainersVersion % Test,
"com.dimafeng" %% "testcontainers-scala-postgresql" % testcontainersVersion % Test,
"org.postgresql" % "postgresql" % postgresDriverVersion % Test
)
)