forked from zio/zio-metrics-connectors
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
82 lines (77 loc) · 2.93 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
import BuildHelper._
inThisBuild(
List(
organization := "dev.zio",
homepage := Some(url("https://zio.dev/zio-metrics-connectors/")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"jdegoes",
"John De Goes",
url("http://degoes.net"),
),
Developer(
"softinio",
"Salar Rahmanian",
url("https://www.softinio.com"),
),
),
pgpPassphrase := sys.env.get("PGP_PASSWORD").map(_.toArray),
pgpPublicRing := file("/tmp/public.asc"),
pgpSecretRing := file("/tmp/secret.asc"),
resolvers ++= Seq(
"s01 Sonatype OSS Snapshots" at "https://s01.oss.sonatype.org/content/repositories/snapshots",
"Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots",
),
scmInfo := Some(
ScmInfo(
url("https://github.com/zio/zio-metrics-connectors/"),
"scm:git:[email protected]:zio/zio-metrics-connectors.git",
),
),
testFrameworks := Seq(new TestFramework("zio.test.sbt.ZTestFramework")),
),
)
addCommandAlias("fmt", "all scalafmtSbt scalafmt test:scalafmt")
addCommandAlias("check", "all scalafmtSbtCheck scalafmtCheck test:scalafmtCheck")
lazy val root =
project.in(file(".")).settings(publish / skip := true).aggregate(core, docs)
lazy val core =
project
.in(file("core"))
.settings(
run / fork := true,
Test / run / javaOptions += "-Djava.net.preferIPv4Stack=true",
Test / run / mainClass := Some("zio.sample.SampleApp"),
cancelable := true,
stdSettings("zio.metrics.connectors"),
libraryDependencies ++= Seq(
"dev.zio" %%% "zio" % Version.zio,
"dev.zio" %%% "zio-json" % Version.zioJson,
"dev.zio" %%% "zio-streams" % Version.zio,
"dev.zio" %% "zio-http" % Version.zioHttp,
"dev.zio" %%% "zio-test" % Version.zio % Test,
"dev.zio" %%% "zio-test-sbt" % Version.zio % Test,
),
)
.settings(buildInfoSettings("zio.metrics.connectors"))
.enablePlugins(BuildInfoPlugin)
lazy val docs = project
.in(file("zio-metrics-connectors-docs"))
.settings(
moduleName := "zio-metrics-connectors-docs",
scalacOptions -= "-Yno-imports",
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % Version.zio,
"dev.zio" %% "zio-http" % Version.zioHttp,
),
projectName := "ZIO Metrics Connectors",
mainModuleName := (core / moduleName).value,
projectStage := ProjectStage.Development,
ScalaUnidoc / unidoc / unidocProjectFilter := inProjects(core),
docsPublishBranch := "zio/series/2.x",
)
.dependsOn(core)
.enablePlugins(WebsitePlugin)