-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
89 lines (80 loc) · 2.28 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
import ReleaseTransformations._
releaseCrossBuild := true
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
setReleaseVersion,
releaseStepCommandAndRemaining("+publishSigned"),
releaseStepCommand("sonatypeReleaseAll"),
commitReleaseVersion,
tagRelease,
setNextVersion,
commitNextVersion
)
val circeVersion = "0.10.0-M1"
val http4sVersion = "0.19.0-M2"
val metrics =
pro("metrics")
.settings(
libraryDependencies ++= List(
"org.log4s" %% "log4s" % "1.6.1",
"org.typelevel" %% "cats-core" % "1.1.0",
"org.typelevel" %% "cats-free" % "1.1.0",
"org.typelevel" %% "cats-effect" % "1.0.0",
)
)
val codahale =
pro("codahale")
.dependsOn(metrics)
.settings(
libraryDependencies ++= List(
"io.dropwizard.metrics" % "metrics-core" % "3.1.2",
)
)
val request =
pro("request")
.dependsOn(metrics)
.settings(
libraryDependencies ++= List(
"io.circe" %% "circe-parser" % circeVersion,
)
)
val play =
pro("play")
.dependsOn(request, codahale)
.settings(
libraryDependencies ++= List(
"com.typesafe.play" %% "play" % "2.6.12",
"com.typesafe.play" %% "play-guice" % "2.6.12",
"com.typesafe.play" %% "play-ahc-ws" % "2.6.12",
"com.typesafe.play" %% "play-specs2" % "2.6.12" % "test",
"de.leanovate.play-mockws" %% "play-mockws" % "2.6.2" % "test",
)
)
val http4s =
pro("http4s")
.dependsOn(request, codahale)
.settings(
libraryDependencies ++= List(
"org.http4s" %% "http4s-core" % http4sVersion,
"org.http4s" %% "http4s-blaze-client" % http4sVersion,
"org.http4s" %% "http4s-dsl" % http4sVersion % "test",
"org.http4s" %% "http4s-blaze-server" % http4sVersion % "test",
"org.http4s" %% "http4s-circe" % http4sVersion % "test",
"io.circe" %% "circe-generic" % circeVersion,
)
)
val integration =
pro("integration")
.dependsOn(request, codahale)
.settings(
publishTo := None,
publish := (()),
publishLocal := (()),
)
.settings(noPublish)
val root =
basicProject(project.in(file(".")))
.aggregate(metrics, request, codahale, play, http4s, integration)
.settings(noPublish)