-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
63 lines (57 loc) · 1.29 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
import Dependencies._
ThisBuild / scalaVersion := "2.13.7"
ThisBuild / scalacOptions ++= Seq(
"-deprecation",
"-feature",
"-unchecked",
"-Xlint",
"-Xsource:3"
)
ThisBuild / scalacOptions ++= sys.props
.get("lerna.enable.discipline")
.map(_ => "-Xfatal-warnings")
.toSeq
ThisBuild / autoAPIMappings := true
// Minimum Coverage
ThisBuild / coverageFailOnMinimum := true
ThisBuild / coverageMinimumStmtTotal := 80
ThisBuild / coverageMinimumBranchTotal := 80
// MiMa
ThisBuild / mimaPreviousArtifacts := {
previousStableVersion.value
.map(organization.value %% moduleName.value % _)
.toSet
}
ThisBuild / mimaReportSignatureProblems := true
lazy val root =
(project in file("."))
.settings(
name := "akka-coordinator-avoidance-shard-allocation-strategy",
libraryDependencies ++= Seq(
Akka.clusterSharding % Provided,
Akka.clusterShardingTyped % Test,
Akka.testKitTyped % Test,
ScalaTest.scalaTest % Test,
Logback.classic % Test
)
)
addCommandAlias(
"ci",
Seq(
"clean",
"scalafmtSbtCheck",
"scalafmtCheckAll",
"Test/compile",
"mimaReportBinaryIssues",
"test"
).mkString(";")
)
addCommandAlias(
"testCoverage",
Seq(
"clean",
"coverage",
"test",
"coverageReport"
).mkString(";")
)