This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathbuild.sbt
91 lines (84 loc) · 3.18 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
88
89
90
91
import BuildHelper._
inThisBuild(
List(
organization := "dev.zio",
homepage := Some(url("https://zio.dev/zio-interop-reactivestreams")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"runtologist",
"Simon Schenk",
url("https://github.com/runtologist")
),
Developer(
"jdegoes",
"John De Goes",
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/interop-reactive-streams/"),
"scm:git:[email protected]:zio/interop-reactive-streams.git"
)
)
)
)
Global / onChangedBuildSource := ReloadOnSourceChanges
addCommandAlias("fmt", "all scalafmtSbt scalafmt test:scalafmt")
addCommandAlias("check", "all scalafmtSbtCheck scalafmtCheck test:scalafmtCheck")
val zioVersion = "2.0.5"
val rsVersion = "1.0.4"
val collCompatVersion = "2.7.0"
lazy val root =
project
.in(file("."))
.settings(publish / skip := true)
.aggregate(interopReactiveStreams, docs)
lazy val interopReactiveStreams = project
.in(file("zio-interop-reactivestreams"))
.enablePlugins(BuildInfoPlugin)
.settings(buildInfoSettings("zio.interop.reactivestreams"))
.settings(stdSettings("zio-interop-reactivestreams"))
.settings(dottySettings)
.settings(testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework"))
.settings(
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % zioVersion,
"dev.zio" %% "zio-streams" % zioVersion,
"dev.zio" %% "zio-test" % zioVersion % Test,
"dev.zio" %% "zio-test-sbt" % zioVersion % Test,
"org.reactivestreams" % "reactive-streams" % rsVersion,
"org.reactivestreams" % "reactive-streams-tck" % rsVersion % Test
),
libraryDependencies ++= {
if (scalaVersion.value == ScalaDotty)
Seq()
else
Seq("org.scala-lang.modules" %% "scala-collection-compat" % collCompatVersion % Test)
}
)
// .settings(Test / javaOptions += "-XX:ActiveProcessorCount=1") // uncomment to test for deadlocks
.settings(Test / fork := true)
lazy val docs = project
.in(file("zio-interop-reactivestreams-docs"))
.settings(
moduleName := "zio-interop-reactivestreams-docs",
crossScalaVersions := Seq(Scala212, Scala213),
scalacOptions -= "-Yno-imports",
scalacOptions -= "-Xfatal-warnings",
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % zioVersion
),
projectName := "ZIO Interop Reactive Streams",
mainModuleName := (interopReactiveStreams / moduleName).value,
projectStage := ProjectStage.ProductionReady,
ScalaUnidoc / unidoc / unidocProjectFilter := inProjects(),
docsPublishBranch := "master"
)
.enablePlugins(WebsitePlugin)