-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.sbt
69 lines (62 loc) · 2.51 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
import sbtcrossproject.CrossPlugin.autoImport.crossProject
import explicitdeps.ExplicitDepsPlugin.autoImport.moduleFilterRemoveValue
import BuildHelper._
Global / onChangedBuildSource := ReloadOnSourceChanges
inThisBuild(
List(
developers := List(
Developer("jdegoes", "John De Goes", "[email protected]", url("https://degoes.net")),
Developer("mijicd", "Dejan Mijic", "[email protected]", url("https://github.com/mijicd")),
Developer("quelgar", "Lachlan O'Dea", "[email protected]", url("https://github.com/quelgar"))
),
homepage := Some(url("https://zio.dev/interop-monix/")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
organization := "dev.zio",
organizationName := "John A. De Goes and the ZIO contributors",
startYear := Some(2021)
)
)
addCommandAlias("fmt", "all scalafmtSbt scalafmtAll")
addCommandAlias("fmtCheck", "all scalafmtSbtCheck scalafmtCheckAll")
addCommandAlias("testJVM", ";interopMonixJVM/test")
addCommandAlias("testJS", ";interopMonixJS/test")
lazy val root = project
.in(file("."))
.enablePlugins(ScalaJSPlugin)
.aggregate(interopMonixJVM, interopMonixJS, docs)
.settings(
publish / skip := true,
unusedCompileDependenciesFilter -= moduleFilter("org.scala-js", "scalajs-library")
)
lazy val interopMonix = crossProject(JSPlatform, JVMPlatform)
.in(file("interop-monix"))
.enablePlugins(BuildInfoPlugin)
.settings(stdSettings("zio-interop-monix"))
.settings(dottySettings)
.settings(crossProjectSettings)
.settings(testFrameworks := Seq(new TestFramework("zio.test.sbt.ZTestFramework")))
.settings(buildInfoSettings("zio.interop.monix"))
.settings(
libraryDependencies ++= Seq(
"io.monix" %%% "monix" % "3.4.1",
"dev.zio" %%% "zio" % "1.0.16",
"dev.zio" %%% "zio-test" % "1.0.16" % Test,
"dev.zio" %%% "zio-test-sbt" % "1.0.16" % Test
)
)
lazy val interopMonixJVM = interopMonix.jvm
lazy val interopMonixJS = interopMonix.js.settings(jsSettings)
lazy val docs = project
.in(file("interop-monix-docs"))
.settings(
moduleName := "interop-monix-docs",
scalacOptions -= "-Yno-imports",
scalacOptions -= "-Xfatal-warnings",
projectName := "ZIO Interop Monix",
mainModuleName := (interopMonixJVM / moduleName).value,
projectStage := ProjectStage.ProductionReady,
ScalaUnidoc / unidoc / unidocProjectFilter := inProjects(interopMonixJVM),
docsPublishBranch := "master"
)
.dependsOn(interopMonixJVM)
.enablePlugins(WebsitePlugin)