forked from zio/zio-schema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
83 lines (77 loc) · 2.55 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
import sbtcrossproject.CrossPlugin.autoImport.crossProject
import BuildHelper._
inThisBuild(
List(
name := "zio-schema",
organization := "dev.zio",
homepage := Some(url("https://github.com/zio/zio-schema")),
developers := List(
Developer(
"ioleo",
"Piotr Gołębiewski",
"ioleo+zio@protonmail.com",
url("https://github.com/ioleo")
),
Developer(
"jczuchnowski",
"Jakub Czuchnowski",
"jakub.czuchnowski@gmail.com",
url("https://github.com/jczuchnowski")
)
),
scmInfo := Some(
ScmInfo(
homepage.value.get,
"scm:git:git@github.com:zio/zio-schema.git"
)
),
licenses := Seq("Apache-2.0" -> url(s"${scmInfo.value.map(_.browseUrl).get}/blob/v${version.value}/LICENSE")),
pgpPassphrase := sys.env.get("PGP_PASSWORD").map(_.toArray),
pgpPublicRing := file("/tmp/public.asc"),
pgpSecretRing := file("/tmp/secret.asc")
)
)
ThisBuild / publishTo := sonatypePublishToBundle.value
addCommandAlias("prepare", "fix; fmt")
addCommandAlias("fmt", "all scalafmtSbt scalafmtAll")
addCommandAlias("fmtCheck", "all scalafmtSbtCheck scalafmtCheckAll")
addCommandAlias("fix", "scalafixAll")
addCommandAlias("fixCheck", "scalafixAll --check")
lazy val root = project
.in(file("."))
.settings(
name := "zio-schema",
skip in publish := true
)
.aggregate(
core
)
lazy val core = project
.in(file("core"))
.settings(stdSettings("zio-schema-core"))
.settings(
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % zioVersion,
"dev.zio" %% "zio-streams" % zioVersion,
"com.propensive" %% "magnolia" % magnoliaVersion,
"org.scala-lang" % "scala-reflect" % scalaVersion.value % Provided
)
)
lazy val docs = project
.in(file("zio-schema-docs"))
.settings(
skip.in(publish) := true,
moduleName := "zio-schema-docs",
scalacOptions -= "-Yno-imports",
scalacOptions -= "-Xfatal-warnings",
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % zioVersion
),
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)
.enablePlugins(MdocPlugin, DocusaurusPlugin, ScalaUnidocPlugin)