-
Notifications
You must be signed in to change notification settings - Fork 71
/
build.sbt
55 lines (50 loc) · 1.54 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
import sbtcrossproject.CrossPlugin.autoImport.crossProject
import BuildHelper._
inThisBuild(
List(
name := "zio-http",
organization := "dev.zio",
homepage := Some(url("https://github.com/zio/zio-http")),
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-http.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("fmt", "all scalafmtSbt scalafmt test:scalafmt")
addCommandAlias("check", "all scalafmtSbtCheck scalafmtCheck test:scalafmtCheck")
addCommandAlias("testRelease", ";set every isSnapshot := false;+clean;+compile")
lazy val root = project
.in(file("."))
.settings(skip in publish := true)
.aggregate(
core
)
lazy val core = project
.in(file("core"))
.settings(stdSettings("zio-http-core"))
.settings(libraryDependencies ++= Seq(
"dev.zio" %% "zio" % zioVersion,
"dev.zio" %% "zio-nio" % zioNioVersion
))