forked from zalando/beard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
59 lines (45 loc) · 2.66 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
import scalariform.formatter.preferences._
name := "beard"
organization := "de.zalando"
version := "0.3.2-SNAPSHOT"
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/"))
scalaVersion := "2.13.1"
scalacOptions := Seq("-unchecked", "-feature", "-deprecation", "-encoding", "utf8")
val antlrVersion = "4.8-1"
crossScalaVersions := Seq(scalaVersion.value, "2.12.11")
enablePlugins(Antlr4Plugin)
antlr4GenListener in Antlr4 := true
antlr4GenVisitor in Antlr4 := true
antlr4Version in Antlr4 := antlrVersion
antlr4Dependency in Antlr4 := "org.antlr" % "antlr4" % antlrVersion
antlr4PackageName in Antlr4 := Some("de.zalando.beard")
libraryDependencies ++= {
Seq(
"org.antlr" % "antlr4" % antlrVersion
exclude("org.antlr", "ST4")
exclude("org.antlr", "antlr-runtime"),
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
"org.scala-lang.modules" %% "scala-xml" % "2.1.0",
"org.slf4j" % "slf4j-api" % "1.7.30",
"ch.qos.logback" % "logback-classic" % "1.1.11",
"org.scalatest" %% "scalatest" % "3.1.1" % "test",
"io.pebbletemplates" % "pebble" % "3.0.10" % "test",
"org.freemarker" % "freemarker" % "2.3.28" % "test",
"com.github.spullara.mustache.java" % "compiler" % "0.9.6" % "test",
"com.github.jknack" % "handlebars" % "4.1.2" % "test",
"de.neuland-bfi" % "jade4j" % "1.2.7" % "test",
"com.storm-enroute" %% "scalameter" % "0.19" % "test"
)
}
scalariformPreferences := scalariformPreferences.value
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(AlignSingleLineCaseStatements.MaxArrowIndent, 100)
.setPreference(PreserveSpaceBeforeArguments, true)
.setPreference(DanglingCloseParenthesis, Preserve)
.setPreference(DoubleIndentConstructorArguments, true)
.setPreference(SpacesAroundMultiImports, false)
logBuffered := false
parallelExecution in Test := false
// testFrameworks += new TestFramework("org.scalameter.ScalaMeterFramework")
publishMavenStyle := true
bintrayOrganization := Some("zalando")