-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
155 lines (143 loc) · 4.09 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
Global / onChangedBuildSource := ReloadOnSourceChanges
// Workaround for https://github.com/sbt/sbt/issues/3465
crossScalaVersions := Nil
inThisBuild(
Seq(
organization := "com.github.cornerman",
licenses := Seq("MIT License" -> url("https://opensource.org/licenses/MIT")),
homepage := Some(url("https://github.com/cornerman/colibri")),
scmInfo := Some(
ScmInfo(
url("https://github.com/cornerman/colibri"),
"scm:git:[email protected]:cornerman/colibri.git",
Some("scm:git:[email protected]:cornerman/colibri.git"),
),
),
pomExtra :=
<developers>
<developer>
<id>jk</id>
<name>Johannes Karoff</name>
<url>https://github.com/cornerman</url>
</developer>
</developers>,
),
)
lazy val commonSettings = Seq(
crossScalaVersions := Seq("2.13.12", "3.3.4"),
scalaVersion := "2.13.12",
libraryDependencies ++= (CrossVersion.partialVersion(scalaVersion.value) match {
case Some((3, _)) => Seq.empty
case _ =>
Seq(
compilerPlugin("org.typelevel" % "kind-projector" % "0.13.3" cross CrossVersion.full),
"org.scala-lang" % "scala-reflect" % scalaVersion.value % Provided,
)
}),
libraryDependencies ++= Seq(
"org.scalatest" %%% "scalatest" % "3.2.19" % Test,
),
/* scalacOptions --= Seq("-Xfatal-warnings"), // overwrite option from https://github.com/DavidGregory084/sbt-tpolecat */
)
lazy val colibri = project
.enablePlugins(ScalaJSPlugin)
.in(file("colibri"))
.settings(commonSettings)
.settings(
name := "colibri",
libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-core" % "2.12.0",
"org.typelevel" %%% "cats-effect" % "3.5.7",
),
)
lazy val reactive = project
.enablePlugins(ScalaJSPlugin)
.dependsOn(colibri)
.in(file("reactive"))
.settings(commonSettings)
.settings(
name := "colibri-reactive",
libraryDependencies ++= Seq(
"dev.optics" %%% "monocle-core" % "3.3.0",
"dev.optics" %%% "monocle-macro" % "3.3.0" % Test,
),
)
lazy val jsdom = project
.enablePlugins(ScalaJSPlugin)
.in(file("jsdom"))
.dependsOn(colibri)
.settings(commonSettings)
.settings(
name := "colibri-jsdom",
libraryDependencies ++= Seq(
"org.scala-js" %%% "scalajs-dom" % "2.8.0",
),
)
lazy val jsdomTests = project
.enablePlugins(ScalaJSPlugin, ScalaJSBundlerPlugin)
.in(file("jsdom-tests"))
.dependsOn(jsdom)
.settings(commonSettings)
.settings(
publish / skip := true,
name := "colibri-jsdom-tests",
Test / requireJsDomEnv := true,
installJsdom / version := "19.0.0",
)
lazy val router = project
.enablePlugins(ScalaJSPlugin)
.dependsOn(jsdom)
.in(file("router"))
.settings(commonSettings)
.settings(
name := "colibri-router",
libraryDependencies ++= Seq(
),
)
lazy val rx = project
.enablePlugins(ScalaJSPlugin)
.dependsOn(colibri)
.in(file("rx"))
.settings(commonSettings)
.settings(
name := "colibri-rx",
crossScalaVersions := Seq("2.13.12"), // no scala3, because scala.rx uses scala2 macros
libraryDependencies ++= Seq(
"com.lihaoyi" %% "scalarx" % "0.4.3",
),
)
lazy val airstream = project
.enablePlugins(ScalaJSPlugin)
.dependsOn(colibri)
.in(file("airstream"))
.settings(commonSettings)
.settings(
name := "colibri-airstream",
libraryDependencies ++= Seq(
"com.raquo" %%% "airstream" % "17.2.0",
),
)
lazy val zio = project
.enablePlugins(ScalaJSPlugin)
.dependsOn(colibri)
.in(file("zio"))
.settings(commonSettings)
.settings(
name := "colibri-zio",
libraryDependencies ++= Seq(
"io.github.cquiroz" %%% "scala-java-time" % "2.6.0",
"dev.zio" %%% "zio" % "2.0.22",
"dev.zio" %%% "zio-streams" % "2.0.22",
),
)
lazy val fs2 = project
.enablePlugins(ScalaJSPlugin)
.dependsOn(colibri)
.in(file("fs2"))
.settings(commonSettings)
.settings(
name := "colibri-fs2",
libraryDependencies ++= Seq(
"co.fs2" %%% "fs2-core" % "3.11.0",
),
)