-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.sbt
67 lines (60 loc) · 2.25 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
lazy val commonSettings = Seq(
organization := "com.evolutiongaming",
homepage := Some(url("https://github.com/evolution-gaming/sequentially")),
startYear := Some(2018),
organizationName := "Evolution",
organizationHomepage := Some(url("https://evolution.com")),
scalaVersion := crossScalaVersions.value.head,
crossScalaVersions := Seq("2.13.14", "3.3.3"),
Compile / scalacOptions ++= {
if (scalaBinaryVersion.value == "2.13") {
Seq(
"-Xsource:3"
)
} else Seq.empty
},
Compile / doc / scalacOptions += "-no-link-warnings",
publishTo := Some(Resolver.evolutionReleases),
licenses := Seq(("MIT", url("https://opensource.org/licenses/MIT"))),
releaseCrossBuild := true,
versionScheme := Some("semver-spec"),
)
// Your next release will be binary compatible with the previous one,
// but it may not be source compatible (ie, it will be a minor release).
ThisBuild / versionPolicyIntention := Compatibility.BinaryAndSourceCompatible
lazy val root = (project
in file(".")
settings (name := "sequentially-root")
settings commonSettings
settings (publish / skip := true)
aggregate (sequentially, benchmark, `sequentially-metrics`))
lazy val sequentially = (project
in file("sequentially")
settings (name := "sequentially")
settings commonSettings
settings (libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-stream" % "2.6.21",
"com.typesafe.akka" %% "akka-testkit" % "2.6.21" % Test,
"com.evolutiongaming" %% "future-helper" % "1.0.7",
"org.scalatest" %% "scalatest" % "3.2.19" % Test,
)))
lazy val benchmark = (project
in file("benchmark")
enablePlugins JmhPlugin
settings (name := "benchmark")
settings commonSettings
dependsOn sequentially)
lazy val `sequentially-metrics` = (project
in file("sequentially-metrics")
settings (name := "sequentially-metrics")
settings commonSettings
dependsOn sequentially
settings (libraryDependencies ++= Seq(
"com.evolutiongaming" %% "prometheus-tools" % "1.1.0"
)))
//used by evolution-gaming/scala-github-actions
addCommandAlias(
"check",
"all versionPolicyCheck Compile/doc scalafmtCheckAll scalafmtSbtCheck; scalafixEnable; scalafixAll --check",
)
addCommandAlias("fmtAll", "all scalafmtAll scalafmtSbt; scalafixEnable; scalafixAll")