forked from zio/zio-nio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
77 lines (70 loc) · 2.57 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
import BuildHelper._
inThisBuild(
List(
organization := "dev.zio",
homepage := Some(url("https://github.com/zio/zio-nio/")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer("jdegoes", "John De Goes", "[email protected]", url("http://degoes.net"))
),
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-nio/"),
"scm:git:[email protected]:zio/zio-nio.git"
)
)
)
)
ThisBuild / publishTo := sonatypePublishToBundle.value
addCommandAlias("fmt", "all scalafmtSbt scalafmt test:scalafmt")
addCommandAlias("check", "all scalafmtSbtCheck scalafmtCheck test:scalafmtCheck")
lazy val zioNioCore = project
.in(file("nio-core"))
.settings(stdSettings("zio-nio-core"))
.settings(
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % ZioCoreVersion,
"dev.zio" %% "zio-streams" % ZioCoreVersion,
"dev.zio" %% "zio-test" % ZioCoreVersion % Test,
"dev.zio" %% "zio-test-sbt" % ZioCoreVersion % Test,
"org.scala-lang.modules" %% "scala-collection-compat" % "2.1.6"
),
testFrameworks := Seq(new TestFramework("zio.test.sbt.ZTestFramework"))
)
lazy val zioNio = project
.in(file("nio"))
.dependsOn(zioNioCore)
.settings(stdSettings("zio-nio"))
.settings(
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % ZioCoreVersion,
"dev.zio" %% "zio-streams" % ZioCoreVersion,
"dev.zio" %% "zio-test" % ZioCoreVersion % Test,
"dev.zio" %% "zio-test-sbt" % ZioCoreVersion % Test,
"org.scala-lang.modules" %% "scala-collection-compat" % "2.1.6"
),
testFrameworks := Seq(new TestFramework("zio.test.sbt.ZTestFramework"))
)
lazy val docs = project
.in(file("zio-nio-docs"))
.settings(
skip.in(publish) := true,
moduleName := "zio-nio-docs",
scalacOptions -= "-Yno-imports",
scalacOptions -= "-Xfatal-warnings",
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % ZioCoreVersion
)
)
.dependsOn(zioNio)
.enablePlugins(MdocPlugin, DocusaurusPlugin)
lazy val examples = project
.in(file("examples"))
.settings(
skip in publish := true,
moduleName := "examples"
)
.dependsOn(zioNio)