forked from 47degrees/github4s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
37 lines (32 loc) · 1 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
pgpPassphrase := Some(getEnvVar("PGP_PASSPHRASE").getOrElse("").toCharArray)
lazy val root = (project in file("."))
.settings(moduleName := "github4s-root")
.aggregate(github4s)
.dependsOn(github4s)
.settings(noPublishSettings: _*)
lazy val github4s =
(project in file("github4s"))
.settings(moduleName := "github4s")
.enablePlugins(BuildInfoPlugin)
.settings(
buildInfoKeys := Seq[BuildInfoKey](
name,
version,
"token" -> sys.env.getOrElse("GITHUB_TOKEN", "")
),
buildInfoPackage := "github4s"
)
.settings(coreDeps: _*)
//////////
// DOCS //
//////////
lazy val docs = (project in file("docs"))
.aggregate(github4s)
.dependsOn(github4s)
.settings(moduleName := "github4s-docs")
.settings(micrositeSettings: _*)
.settings(docsDependencies: _*)
.settings(noPublishSettings: _*)
.enablePlugins(MicrositesPlugin)
addCommandAlias("ci-test", "+scalafmtCheck; +scalafmtSbtCheck; +docs/mdoc; +test")
addCommandAlias("ci-docs", "docs/mdoc")