|
1 | 1 | lazy val commonSettings = Seq(
|
2 | 2 | organization := "com.whisk",
|
3 |
| - version := "0.9.9", |
| 3 | + version := "0.10.0-RC", |
4 | 4 | scalaVersion := "2.13.6",
|
5 |
| - crossScalaVersions := Seq("2.13.6", "2.12.15", "2.11.12", "3.0.2"), |
| 5 | + crossScalaVersions := Seq("2.13.6", "2.12.15", "2.11.12"), |
6 | 6 | scalacOptions ++= Seq("-feature", "-deprecation"),
|
7 | 7 | Test / fork := true,
|
8 | 8 | licenses += ("MIT", url("http://opensource.org/licenses/MIT")),
|
@@ -36,99 +36,60 @@ lazy val root =
|
36 | 36 | .in(file("."))
|
37 | 37 | .settings(commonSettings: _*)
|
38 | 38 | .settings(publish := {}, publishLocal := {}, packagedArtifacts := Map.empty)
|
39 |
| - .aggregate(core, |
40 |
| - testkitSpotifyImpl, |
41 |
| - testkitSpotifyShadedImpl, |
42 |
| - testkitDockerJavaImpl, |
43 |
| - config, |
44 |
| - scalatest, |
45 |
| - specs2, |
46 |
| - samples) |
| 39 | + .aggregate(core, scalatest, samples, coreShaded) |
47 | 40 |
|
48 | 41 | lazy val core =
|
49 | 42 | project
|
50 |
| - .settings(commonSettings: _*) |
51 |
| - .settings(name := "docker-testkit-core", |
52 |
| - libraryDependencies += "org.slf4j" % "slf4j-api" % "1.7.22") |
53 |
| - |
54 |
| -lazy val testkitSpotifyImpl = |
55 |
| - project |
56 |
| - .in(file("impl/spotify")) |
57 |
| - .settings(commonSettings: _*) |
58 |
| - .settings(name := "docker-testkit-impl-spotify", |
59 |
| - libraryDependencies ++= |
60 |
| - Seq("com.spotify" % "docker-client" % "8.11.5", |
61 |
| - "com.google.code.findbugs" % "jsr305" % "3.0.1")) |
62 |
| - .dependsOn(core) |
63 |
| - |
64 |
| -lazy val testkitSpotifyShadedImpl = |
65 |
| - project |
66 |
| - .in(file("impl/spotify")) |
67 | 43 | .settings(commonSettings: _*)
|
68 | 44 | .settings(
|
69 |
| - name := "docker-testkit-impl-spotify-shaded", |
70 |
| - libraryDependencies ++= |
71 |
| - Seq("com.spotify" % "docker-client" % "8.11.5" classifier "shaded", |
72 |
| - "com.google.code.findbugs" % "jsr305" % "3.0.1"), |
73 |
| - target := baseDirectory.value / "target-shaded" |
| 45 | + name := "docker-testkit-core", |
| 46 | + libraryDependencies ++= Seq( |
| 47 | + "org.slf4j" % "slf4j-api" % "1.7.25", |
| 48 | + "com.spotify" % "docker-client" % "8.16.0", |
| 49 | + "com.google.code.findbugs" % "jsr305" % "3.0.1" |
| 50 | + ) |
74 | 51 | )
|
75 |
| - .dependsOn(core) |
76 | 52 |
|
77 |
| -lazy val testkitDockerJavaImpl = |
| 53 | +lazy val scalatest = |
78 | 54 | project
|
79 |
| - .in(file("impl/docker-java")) |
80 | 55 | .settings(commonSettings: _*)
|
81 | 56 | .settings(
|
82 |
| - name := "docker-testkit-impl-docker-java", |
83 |
| - libraryDependencies ++= |
84 |
| - Seq("com.github.docker-java" % "docker-java" % "3.2.3", |
85 |
| - "com.google.code.findbugs" % "jsr305" % "3.0.1") |
| 57 | + name := "docker-testkit-scalatest", |
| 58 | + libraryDependencies ++= Seq( |
| 59 | + "org.scalatest" %% "scalatest" % "3.1.2", |
| 60 | + "ch.qos.logback" % "logback-classic" % "1.2.3" % "test" |
| 61 | + ) |
86 | 62 | )
|
87 | 63 | .dependsOn(core)
|
88 | 64 |
|
89 | 65 | lazy val samples =
|
90 | 66 | project
|
91 | 67 | .settings(commonSettings: _*)
|
92 | 68 | .settings(name := "docker-testkit-samples")
|
93 |
| - .dependsOn(core) |
| 69 | + .dependsOn(core, scalatest) |
94 | 70 |
|
95 |
| -lazy val scalatest = |
| 71 | +lazy val tests = |
96 | 72 | project
|
97 | 73 | .settings(commonSettings: _*)
|
98 | 74 | .settings(
|
99 |
| - name := "docker-testkit-scalatest", |
100 |
| - libraryDependencies ++= |
101 |
| - Seq( |
102 |
| - "org.scalatest" %% "scalatest" % "3.2.9", |
103 |
| - "ch.qos.logback" % "logback-classic" % "1.2.1" % "test", |
104 |
| - "org.postgresql" % "postgresql" % "9.4.1210" % "test", |
105 |
| - "javax.activation" % "activation" % "1.1.1" % "test" |
106 |
| - ) |
| 75 | + name := "docker-testkit-tests", |
| 76 | + libraryDependencies ++= Seq( |
| 77 | + "org.postgresql" % "postgresql" % "42.1.4" % "test", |
| 78 | + "mysql" % "mysql-connector-java" % "5.1.44" % "test" |
| 79 | + ) |
107 | 80 | )
|
108 |
| - .dependsOn(core, testkitSpotifyShadedImpl % "test", testkitDockerJavaImpl % "test", samples % "test") |
| 81 | + .dependsOn(core, scalatest, samples % "test") |
109 | 82 |
|
110 |
| -lazy val specs2 = |
| 83 | +lazy val coreShaded = |
111 | 84 | project
|
| 85 | + .in(file("core")) |
112 | 86 | .settings(commonSettings: _*)
|
113 | 87 | .settings(
|
114 |
| - name := "docker-testkit-specs2", |
| 88 | + name := "docker-testkit-core-shaded", |
115 | 89 | libraryDependencies ++=
|
116 | 90 | Seq(
|
117 |
| - "org.specs2" %% "specs2-core" % (if (scalaVersion.value.startsWith("2.1")) "4.5.1" |
118 |
| - else "5.0.0-RC-11"), |
119 |
| - "ch.qos.logback" % "logback-classic" % "1.2.1" % "test", |
120 |
| - "org.postgresql" % "postgresql" % "9.4.1210" % "test", |
121 |
| - "javax.activation" % "activation" % "1.1.1" % "test" |
122 |
| - ) |
123 |
| - ) |
124 |
| - .dependsOn(core, samples % "test", testkitDockerJavaImpl % "test") |
125 |
| - |
126 |
| -lazy val config = |
127 |
| - project |
128 |
| - .settings(commonSettings: _*) |
129 |
| - .settings( |
130 |
| - name := "docker-testkit-config", |
131 |
| - libraryDependencies ++= |
132 |
| - Seq("com.typesafe" % "config" % "1.4.1", "org.scalatest" %% "scalatest" % "3.2.9" % "test") |
| 91 | + "com.spotify" % "docker-client" % "8.16.0" classifier "shaded", |
| 92 | + "com.google.code.findbugs" % "jsr305" % "3.0.1" |
| 93 | + ), |
| 94 | + target := baseDirectory.value / "target-shaded" |
133 | 95 | )
|
134 |
| - .dependsOn(core, testkitDockerJavaImpl) |
0 commit comments