-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
61 lines (55 loc) · 1.97 KB
/
build.sbt
File metadata and controls
61 lines (55 loc) · 1.97 KB
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
import sbt.Test
lazy val commonSettings = Seq(
homepage := Some(url("https://github.com/evolution-gaming/nats-effect")),
organization := "com.evolution",
organizationName := "Evolution",
organizationHomepage := Some(url("https://evolution.com")),
startYear := Some(2026),
licenses := Seq(("MIT", url("https://opensource.org/licenses/MIT"))),
crossScalaVersions := Seq("2.13.16", "3.3.4"),
versionScheme := Some("semver-spec"),
scalaVersion := crossScalaVersions.value.head,
publishTo := Some(Resolver.evolutionReleases),
scalacOptions ++= {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, _)) =>
Seq(
"-Wunused:_",
"-Werror",
"-deprecation",
"-Wnumeric-widen",
"-Wdead-code",
"-Wvalue-discard",
"-Xsource:3",
"-feature",
"-Yrangepos",
"-Ywarn-unused"
)
case _ =>
Seq(
"-source:future",
"-Wunused:all",
"-Werror",
"-deprecation",
"-feature",
"-language:adhocExtensions"
)
}
}
)
lazy val root = project
.in(file("."))
.settings(commonSettings)
.settings(
name := "nats-effect",
publish / skip := true,
Test / parallelExecution := true,
addCommandAlias("fmt", "all scalafmtAll scalafmtSbt"),
addCommandAlias("check", "all scalafmtCheckAll scalafmtSbtCheck"),
addCommandAlias("build", "+all compile test")
)
.aggregate(core, jetstream, metrics, logback)
lazy val core = project.settings(commonSettings).settings(Test / testFrameworks += TestFramework("weaver.framework.CatsEffect"))
lazy val jetstream = project.settings(commonSettings).dependsOn(core % "compile->compile;test->test")
lazy val metrics = project.settings(commonSettings).dependsOn(core)
lazy val logback = project.settings(commonSettings).dependsOn(core)