-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathbuild.sbt
46 lines (41 loc) · 1.61 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
ThisBuild / tlBaseVersion := "0.25"
ThisBuild / developers := List(
tlGitHubDev("rossabaker", "Ross A. Baker")
)
val Scala213 = "2.13.15"
ThisBuild / crossScalaVersions := Seq("2.12.20", Scala213, "3.3.4")
ThisBuild / scalaVersion := Scala213
ThisBuild / startYear := Some(2018)
lazy val root = project.in(file(".")).aggregate(prometheusMetrics).enablePlugins(NoPublishPlugin)
val http4sVersion = "0.23.29"
val prometheusVersion = "0.16.0"
val munitVersion = "1.0.0"
val munitCatsEffectVersion = "2.0.0"
lazy val prometheusMetrics = project
.in(file("prometheus-metrics"))
.settings(
name := "http4s-prometheus-metrics",
description := "Support for Prometheus Metrics",
libraryDependencies ++= Seq(
"org.http4s" %%% "http4s-core" % http4sVersion,
"io.prometheus" % "simpleclient" % prometheusVersion,
"io.prometheus" % "simpleclient_common" % prometheusVersion,
"io.prometheus" % "simpleclient_hotspot" % prometheusVersion,
"org.scalameta" %%% "munit-scalacheck" % munitVersion % Test,
"org.typelevel" %%% "munit-cats-effect" % munitCatsEffectVersion % Test,
"org.http4s" %%% "http4s-server" % http4sVersion % Test,
"org.http4s" %%% "http4s-client" % http4sVersion % Test,
"org.http4s" %%% "http4s-dsl" % http4sVersion % Test,
),
)
lazy val docs = project
.in(file("site"))
.dependsOn(prometheusMetrics)
.settings(
libraryDependencies ++= Seq(
"org.http4s" %%% "http4s-server" % http4sVersion,
"org.http4s" %%% "http4s-client" % http4sVersion,
"org.http4s" %%% "http4s-dsl" % http4sVersion,
)
)
.enablePlugins(Http4sOrgSitePlugin)