-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
101 lines (85 loc) · 3.43 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
val catsV = "2.10.0"
val catsEffectV = "3.5.4"
val fs2V = "3.9.4"
val http4sV = "0.23.27"
val circeV = "0.14.9"
val log4catsV = "2.7.0"
ThisBuild / tlBaseVersion := "0.0"
ThisBuild / tlSonatypeUseLegacyHost := true
ThisBuild / crossScalaVersions := Seq("2.12.17", "2.13.14", "3.3.3")
ThisBuild / organization := "io.chrisdavenport"
ThisBuild / organizationName := "Christopher Davenport"
ThisBuild / licenses := Seq(License.MIT)
ThisBuild / developers := List(
// your GitHub handle and name
tlGitHubDev("christopherdavenport", "Christopher Davenport")
)
ThisBuild / tlCiReleaseBranches := Seq("main")
// Projects
lazy val `whale-tail` = tlCrossRootProject
.aggregate(core, manager, examples)
lazy val core = crossProject(JSPlatform, JVMPlatform)
.crossType(CrossType.Pure)
.in(file("core"))
.settings(commonSettings)
.settings(
name := "whale-tail"
)
.jvmSettings(
libraryDependencies ++= Seq(
"com.github.jnr" % "jnr-unixsocket" % "0.38.22" % Test,
)
)
.jsSettings(
scalaJSLinkerConfig ~= { _.withModuleKind(ModuleKind.CommonJSModule)},
)
lazy val manager = crossProject(JSPlatform, JVMPlatform)
.crossType(CrossType.Pure)
.dependsOn(core)
.in(file("manager"))
.settings(name := "whale-tail-manager")
.jvmSettings(
libraryDependencies += "com.github.jnr" % "jnr-unixsocket" % "0.38.20" % Test,
)
.jsSettings(
scalaJSLinkerConfig ~= { _.withModuleKind(ModuleKind.CommonJSModule)},
)
lazy val examples = project.in(file("examples"))
.enablePlugins(NoPublishPlugin)
.settings(commonSettings)
.dependsOn(core.jvm, manager.jvm)
.settings(
name := "whale-tail-examples",
libraryDependencies ++= Seq(
"org.typelevel" %% "log4cats-slf4j" % log4catsV,
"ch.qos.logback" % "logback-classic" % "1.2.11",
"org.http4s" %% "http4s-ember-server" % http4sV,
"com.github.jnr" % "jnr-unixsocket" % "0.38.20",
)
)
lazy val site = project.in(file("site"))
.enablePlugins(TypelevelSitePlugin)
.settings(tlSiteIsTypelevelProject := Some(TypelevelProject.Affiliate))
.settings(commonSettings)
.dependsOn(core.jvm)
// General Settings
lazy val commonSettings = Seq(
libraryDependencies ++= Seq(
// "com.github.jnr" % "jnr-unixsocket" % "0.33",
"org.typelevel" %%% "cats-core" % catsV,
"org.typelevel" %%% "cats-effect" % catsEffectV,
"co.fs2" %%% "fs2-core" % fs2V,
"co.fs2" %%% "fs2-io" % fs2V,
"org.http4s" %%% "http4s-dsl" % http4sV,
"org.http4s" %%% "http4s-ember-core" % http4sV,
"org.http4s" %%% "http4s-client" % http4sV,
"org.http4s" %%% "http4s-circe" % http4sV,
"org.http4s" %%% "http4s-ember-client" % http4sV,
"io.circe" %%% "circe-core" % circeV,
"io.circe" %%% "circe-generic" % circeV,
"io.circe" %%% "circe-parser" % circeV,
"org.typelevel" %%% "log4cats-core" % log4catsV,
"org.typelevel" %%% "log4cats-testing" % log4catsV % Test,
"org.typelevel" %%% "cats-effect-testing-specs2" % "1.5.0" % Test,
)
)