-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.sbt
75 lines (71 loc) · 2.69 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
ThisBuild / organization := "com.augustnagro"
ThisBuild / version := "1.3.1-SNAPSHOT"
ThisBuild / versionScheme := Some("early-semver")
ThisBuild / scalaVersion := "3.3.0"
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
val testcontainersVersion = "0.40.12"
lazy val root = project
.in(file("."))
.aggregate(magnum, magnumPg)
lazy val magnum = project
.in(file("magnum"))
.settings(
Test / fork := true,
publish / skip := false,
libraryDependencies ++= Seq(
"org.scalameta" %% "munit" % "0.7.29" % Test,
"com.dimafeng" %% "testcontainers-scala-munit" % testcontainersVersion % Test,
"com.dimafeng" %% "testcontainers-scala-postgresql" % testcontainersVersion % Test,
"org.postgresql" % "postgresql" % "42.6.0" % Test,
"com.dimafeng" %% "testcontainers-scala-mysql" % testcontainersVersion % Test,
"mysql" % "mysql-connector-java" % "8.0.32" % Test,
"com.h2database" % "h2" % "2.1.214" % 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.4.1" % Test classifier "http",
"org.xerial" % "sqlite-jdbc" % "3.41.0.0" % Test
)
)
lazy val magnumPg = project
.in(file("magnum-pg"))
.dependsOn(magnum)
.settings(
Test / fork := true,
publish / skip := false,
libraryDependencies ++= Seq(
"org.postgresql" % "postgresql" % "42.6.0" % "provided",
"org.scalameta" %% "munit" % "0.7.29" % Test,
"com.dimafeng" %% "testcontainers-scala-munit" % testcontainersVersion % Test,
"com.dimafeng" %% "testcontainers-scala-postgresql" % testcontainersVersion % Test
)
)