forked from whisklabs/docker-it-scala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
114 lines (106 loc) · 3.68 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
102
103
104
105
106
107
108
109
110
111
112
113
114
lazy val commonSettings = Seq(
organization := "com.whisk",
version := "0.9.6",
scalaVersion := "2.12.3",
crossScalaVersions := Seq("2.12.3", "2.11.11", "2.10.6"),
scalacOptions ++= Seq("-feature", "-deprecation"),
fork in Test := 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, testkitSpotifyImpl, testkitDockerJavaImpl, config, scalatest, specs2, samples)
lazy val core =
project
.settings(commonSettings: _*)
.settings(name := "docker-testkit-core",
libraryDependencies += "org.slf4j" % "slf4j-api" % "1.7.22")
lazy val testkitSpotifyImpl =
project
.in(file("impl/spotify"))
.settings(commonSettings: _*)
.settings(name := "docker-testkit-impl-spotify",
libraryDependencies ++=
Seq("com.spotify" % "docker-client" % "8.9.0",
"com.google.code.findbugs" % "jsr305" % "3.0.1"))
.dependsOn(core)
lazy val testkitDockerJavaImpl =
project
.in(file("impl/docker-java"))
.settings(commonSettings: _*)
.settings(
name := "docker-testkit-impl-docker-java",
libraryDependencies ++=
Seq("com.github.docker-java" % "docker-java" % "3.0.13",
"com.google.code.findbugs" % "jsr305" % "3.0.1")
)
.dependsOn(core)
lazy val samples =
project
.settings(commonSettings: _*)
.settings(name := "docker-testkit-samples")
.dependsOn(core)
lazy val scalatest =
project
.settings(commonSettings: _*)
.settings(
name := "docker-testkit-scalatest",
libraryDependencies ++=
Seq("org.scalatest" %% "scalatest" % "3.0.4",
"ch.qos.logback" % "logback-classic" % "1.2.1" % "test",
"org.postgresql" % "postgresql" % "9.4.1210" % "test")
)
.dependsOn(core, testkitSpotifyImpl % "test", testkitDockerJavaImpl % "test", samples % "test")
lazy val specs2 =
project
.settings(commonSettings: _*)
.settings(
name := "docker-testkit-specs2",
libraryDependencies ++=
Seq("org.specs2" %% "specs2-core" % "3.8.6",
"ch.qos.logback" % "logback-classic" % "1.2.1" % "test",
"org.postgresql" % "postgresql" % "9.4.1210" % "test")
)
.dependsOn(core, samples % "test", testkitDockerJavaImpl % "test")
lazy val config =
project
.settings(commonSettings: _*)
.settings(
name := "docker-testkit-config",
libraryDependencies ++=
Seq(
"com.iheart" %% "ficus" % "1.4.1",
"org.scalatest" %% "scalatest" % "3.0.4" % "test"
),
publish := scalaVersion map {
case x if x.startsWith("2.10") => {}
case _ => publish.value
}
)
.dependsOn(core, testkitDockerJavaImpl)