forked from zio/zio-zmx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
87 lines (78 loc) · 2.65 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
import BuildHelper._
inThisBuild(
List(
organization := "dev.zio",
homepage := Some(url("https://zio.github.io/zio.zmx/")),
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"),
scmInfo := Some(
ScmInfo(url("https://github.com/zio/zio.zmx/"), "scm:git:[email protected]:zio/zio.zmx.git")
)
)
)
addCommandAlias("fmt", "all scalafmtSbt scalafmt test:scalafmt")
addCommandAlias("check", "all scalafmtSbtCheck scalafmtCheck test:scalafmtCheck")
val zioVersion = "1.0.4"
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % zioVersion,
"dev.zio" %% "zio-nio" % "1.0.0-RC9",
"dev.zio" %% "zio-test" % zioVersion % "test",
"dev.zio" %% "zio-test-sbt" % zioVersion % "test",
"org.polynote" %% "uzhttp" % "0.2.6" % "test"
)
testFrameworks := Seq(new TestFramework("zio.test.sbt.ZTestFramework"))
resolvers += Resolver.sonatypeRepo("snapshots")
lazy val root =
(project in file("."))
.settings(
stdSettings("zio.zmx")
)
.settings(buildInfoSettings("zio.zmx"))
.enablePlugins(BuildInfoPlugin)
lazy val examples =
(project in file("examples"))
.settings(
stdSettings("zio.zmx")
)
.settings(
skip.in(publish) := true,
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % zioVersion,
"org.polynote" %% "uzhttp" % "0.2.6"
)
)
.dependsOn(root)
lazy val docs = project
.in(file("zio-zmx-docs"))
.settings(
skip.in(publish) := true,
moduleName := "zio.zmx-docs",
scalacOptions -= "-Yno-imports",
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % zioVersion,
"org.polynote" %% "uzhttp" % "0.2.6"
),
unidocProjectFilter in (ScalaUnidoc, unidoc) := inProjects(root),
target in (ScalaUnidoc, unidoc) := (baseDirectory in LocalRootProject).value / "website" / "static" / "api",
cleanFiles += (target in (ScalaUnidoc, unidoc)).value,
docusaurusCreateSite := docusaurusCreateSite.dependsOn(unidoc in Compile).value,
docusaurusPublishGhpages := docusaurusPublishGhpages.dependsOn(unidoc in Compile).value
)
.dependsOn(root, examples)
.enablePlugins(MdocPlugin, DocusaurusPlugin, ScalaUnidocPlugin)