forked from akka/akka-persistence-dynamodb-1.x
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
42 lines (35 loc) · 1.64 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
name := "akka-persistence-dynamodb"
scalaVersion := "2.11.8"
crossScalaVersions := Seq("2.11.8", "2.12.3")
crossVersion := CrossVersion.binary
val akkaVersion = "2.4.20"
val amzVersion = "1.11.66"
libraryDependencies ++= Seq(
"com.amazonaws" % "aws-java-sdk-core" % amzVersion,
"com.amazonaws" % "aws-java-sdk-dynamodb" % amzVersion,
"com.typesafe.akka" %% "akka-persistence" % akkaVersion,
"com.typesafe.akka" %% "akka-stream" % akkaVersion,
"com.typesafe.akka" %% "akka-persistence-tck" % akkaVersion % "test",
"com.typesafe.akka" %% "akka-testkit" % akkaVersion % "test",
"org.scalatest" %% "scalatest" % "3.0.1" % "test",
"commons-io" % "commons-io" % "2.4" % "test",
"org.hdrhistogram" % "HdrHistogram" % "2.1.8" % "test"
)
parallelExecution in Test := false
logBuffered := false
testOptions in Test += Tests.Argument(TestFrameworks.ScalaTest, "-oDF")
import com.typesafe.sbt.SbtScalariform
import com.typesafe.sbt.SbtScalariform.ScalariformKeys
SbtScalariform.scalariformSettings
ScalariformKeys.preferences in Compile := formattingPreferences
ScalariformKeys.preferences in Test := formattingPreferences
def formattingPreferences = {
import scalariform.formatter.preferences._
FormattingPreferences()
.setPreference(RewriteArrowSymbols, false)
.setPreference(AlignParameters, true)
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(SpacesAroundMultiImports, true)
.setPreference(DoubleIndentClassDeclaration, true)
.setPreference(AlignArguments, true)
}