This repository has been archived by the owner on Feb 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
77 lines (72 loc) · 2.13 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
lazy val commonSettings = inThisBuild(
List(
organization := "com.whisk",
scalaVersion := "2.12.4",
version := "0.2.3",
scalacOptions ++= Seq("-feature", "-deprecation", "-language:implicitConversions"),
sonatypeProfileName := "com.whisk",
publishMavenStyle := true,
licenses += ("MIT", url("http://opensource.org/licenses/MIT")),
homepage := Some(url("https://github.com/whisklabs/hulk")),
scmInfo := Some(
ScmInfo(
url("https://github.com/whisklabs/hulk"),
"scm:git:github.com/whisklabs/hulk.git"
)
),
developers := List(
Developer(id = "viktortnk",
name = "Viktor Taranenko",
email = "[email protected]",
url = url("https://finelydistributed.io/"))
),
publishTo := Some(Opts.resolver.sonatypeStaging),
parallelExecution in Test := false
))
lazy val root = project
.in(file("."))
.settings(commonSettings)
.settings(publish := {}, publishLocal := {}, packagedArtifacts := Map.empty)
.aggregate(core, testing, circe, tests)
lazy val core = project
.in(file("hulk-core"))
.settings(
name := "hulk-core",
commonSettings,
libraryDependencies ++= Seq(
"org.slf4j" % "slf4j-api" % "1.7.25",
"com.github.mauricio" %% "postgresql-async" % "0.2.21",
)
)
lazy val testing = project
.in(file("hulk-testing"))
.settings(
name := "hulk-testing",
commonSettings,
libraryDependencies ++= Seq(
"com.whisk" %% "docker-testkit-scalatest" % "0.10.0-beta2",
"org.postgresql" % "postgresql" % "42.1.4"
)
)
.dependsOn(core)
lazy val circe = project
.in(file("hulk-circe"))
.settings(
name := "hulk-circe",
commonSettings,
libraryDependencies ++= Seq(
"io.circe" %% "circe-core" % "0.9.0-M2",
"io.circe" %% "circe-parser" % "0.9.0-M2"
)
)
.dependsOn(core % "compile->compile;test->test")
lazy val tests = project
.in(file("hulk-tests"))
.settings(
name := "hulk-tests",
commonSettings,
publish := {},
publishLocal := {},
packagedArtifacts := Map.empty
)
.dependsOn(core % Test, circe % Test, testing % Test)