This repository has been archived by the owner on Dec 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
53 lines (44 loc) · 1.44 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
import sbt._
import sbt.Keys._
import com.typesafe.sbt.SbtScalariform.ScalariformKeys._
lazy val streamExperiments = project
.copy(id = "stream-experiments")
.in(file("."))
.settings(
libraryDependencies ++= Vector(
Library.akkaHttp,
Library.akkaHttpSprayJson,
Library.akkaSlf4j,
Library.logback,
Library.base64,
Library.akkaHttpTestkit % "test",
Library.akkaTestkit % "test",
Library.scalaTest % "test"
),
organization := "com.scalapenos",
scalaVersion := Version.Scala,
crossScalaVersions := Vector(scalaVersion.value),
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0")),
scalacOptions ++= Vector(
"-unchecked",
"-deprecation",
"-language:_",
"-target:jvm-1.8",
"-encoding", "UTF-8",
"-Xlog-reflective-calls",
"-Ywarn-unused",
"-Ywarn-unused-import"
),
preferences in Compile := formattingPreferences,
preferences in Test := formattingPreferences
)
lazy val formattingPreferences = {
import scalariform.formatter.preferences._
FormattingPreferences()
.setPreference(AlignParameters, false)
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(AlignSingleLineCaseStatements.MaxArrowIndent, 90)
.setPreference(DoubleIndentClassDeclaration, true)
.setPreference(RewriteArrowSymbols, true)
.setPreference(DanglingCloseParenthesis, Preserve)
}