-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
65 lines (46 loc) · 2.04 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
ThisBuild / tlBaseVersion := "0.0" // your current series x.y
ThisBuild / organization := "io.chrisdavenport"
ThisBuild / organizationName := "Christopher Davenport"
ThisBuild / licenses := Seq(License.Apache2)
ThisBuild / developers := List(
tlGitHubDev("christopherdavenport", "Christopher Davenport")
)
ThisBuild / versionScheme := Some("early-semver")
ThisBuild / tlCiReleaseBranches := Seq("main")
ThisBuild / tlSonatypeUseLegacyHost := true
val Scala3 = "3.3.0"
ThisBuild / crossScalaVersions := Seq("2.13.11", Scala3)
ThisBuild / scalaVersion := Scala3
ThisBuild / testFrameworks += new TestFramework("munit.Framework")
val catsV = "2.9.0"
val catsEffectV = "3.5.0"
val fs2V = "3.7.0"
val http4sV = "0.23.18"
val log4catsV = "2.6.0"
val munitCatsEffectV = "2.0.0-M3"
// Projects
lazy val `http4s-log4cats-contextlog` = tlCrossRootProject
.aggregate(core)
lazy val core = crossProject(JVMPlatform, JSPlatform, NativePlatform)
.crossType(CrossType.Pure)
.in(file("core"))
.settings(
name := "http4s-log4cats-contextlog",
mimaPreviousArtifacts := Set(), // This is 0.0
libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-core" % catsV,
"org.typelevel" %%% "cats-effect" % catsEffectV,
"co.fs2" %%% "fs2-core" % fs2V,
"co.fs2" %%% "fs2-io" % fs2V,
"org.http4s" %%% "http4s-client" % http4sV,
"org.http4s" %%% "http4s-server" % http4sV,
"org.typelevel" %%% "log4cats-core" % log4catsV,
"org.typelevel" %%% "munit-cats-effect" % munitCatsEffectV % Test,
"org.typelevel" %%% "log4cats-testing" % log4catsV % Test,
)
).jsSettings(
scalaJSLinkerConfig ~= { _.withModuleKind(ModuleKind.CommonJSModule)},
)
lazy val site = project.in(file("site"))
.enablePlugins(TypelevelSitePlugin)
.dependsOn(core.jvm)