-
Notifications
You must be signed in to change notification settings - Fork 91
/
build.sbt
96 lines (90 loc) · 2.87 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
lazy val commonSettings = Seq(
organization := "com.whisk",
version := "0.12.0",
scalaVersion := "2.13.6",
crossScalaVersions := Seq("2.13.6", "2.12.15", "2.11.12", "3.0.2"),
scalacOptions ++= Seq("-feature", "-deprecation"),
Test / fork := true,
licenses += ("MIT", url("http://opensource.org/licenses/MIT")),
sonatypeProfileName := "com.whisk",
publishMavenStyle := true,
publishTo := Some(Opts.resolver.sonatypeStaging),
pomExtra in Global := {
<url>https://github.com/whisklabs/docker-it-scala</url>
<scm>
<connection>scm:git:github.com/whisklabs/docker-it-scala.git</connection>
<developerConnection>scm:git:git@github.com:whisklabs/docker-it-scala.git</developerConnection>
<url>github.com/whisklabs/docker-it-scala.git</url>
</scm>
<developers>
<developer>
<id>viktortnk</id>
<name>Viktor Taranenko</name>
<url>https://github.com/viktortnk</url>
</developer>
<developer>
<id>alari</id>
<name>Dmitry Kurinskiy</name>
<url>https://github.com/alari</url>
</developer>
</developers>
}
)
lazy val root =
project
.in(file("."))
.settings(commonSettings: _*)
.settings(publish := {}, publishLocal := {}, packagedArtifacts := Map.empty)
.aggregate(core, scalatest, samples, coreShaded)
lazy val core =
project
.settings(commonSettings: _*)
.settings(
name := "docker-testkit-core",
libraryDependencies ++= Seq(
"org.slf4j" % "slf4j-api" % "1.7.25",
"com.spotify" % "docker-client" % "8.16.0",
"com.google.code.findbugs" % "jsr305" % "3.0.1"
)
)
lazy val scalatest =
project
.settings(commonSettings: _*)
.settings(
name := "docker-testkit-scalatest",
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.2.9",
"ch.qos.logback" % "logback-classic" % "1.2.3" % "test"
)
)
.dependsOn(core)
lazy val samples =
project
.settings(commonSettings: _*)
.settings(name := "docker-testkit-samples")
.dependsOn(core, scalatest)
lazy val tests =
project
.settings(commonSettings: _*)
.settings(
name := "docker-testkit-tests",
libraryDependencies ++= Seq(
"org.postgresql" % "postgresql" % "42.1.4" % "test",
"mysql" % "mysql-connector-java" % "5.1.44" % "test",
"com.clickhouse" % "clickhouse-jdbc" % "0.5.0" % "test"
)
)
.dependsOn(core, scalatest, samples % "test")
lazy val coreShaded =
project
.in(file("core"))
.settings(commonSettings: _*)
.settings(
name := "docker-testkit-core-shaded",
libraryDependencies ++=
Seq(
"com.spotify" % "docker-client" % "8.16.0" classifier "shaded",
"com.google.code.findbugs" % "jsr305" % "3.0.1"
),
target := baseDirectory.value / "target-shaded"
)