-
Notifications
You must be signed in to change notification settings - Fork 1
/
generic.sbt
67 lines (56 loc) · 2.21 KB
/
generic.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
// generic conf; don't change this file
// pull particular versions from buildconf
scalaVersion := "2.12.6"
dependencyOverrides += "org.scala-lang" % "scala-library" % scalaVersion.value
// compiler
////////////////////////////////////////////////////////////////////////////////
scalacOptions ++= Seq(
"-Xsource:2.13",
"-Xlint",
"-unchecked",
"-Yno-adapted-args",
"-Ywarn-adapted-args",
"-Ywarn-unused-import",
"-Xlog-reflective-calls",
"-opt-warnings:_",
"-Ydelambdafy:method"
)
// scaladoc
////////////////////////////////////////////////////////////////////////////////
scalacOptions in (Compile, doc) ++= Seq("-groups", "-implicits", "-feature")
addCompilerPlugin("ohnosequences" %% "contexts" % "0.5.0")
////////////////////////////////////////////////////////////////////////////////
// scalafmt
////////////////////////////////////////////////////////////////////////////////
scalafmtVersion := "1.4.0"
scalafmtOnCompile := true
////////////////////////////////////////////////////////////////////////////////
// wartemover
////////////////////////////////////////////////////////////////////////////////
wartremoverErrors in (Compile, compile) := Seq()
wartremoverWarnings in (Compile, compile) := Warts.allBut(
Wart.Equals,
Wart.FinalVal,
Wart.ImplicitConversion,
Wart.Nothing // needed because of the contexts compiler plugin
)
wartremoverErrors in (Test, compile) := Seq()
wartremoverWarnings in (Test, compile) := Warts.allBut(
Wart.Equals,
Wart.FinalVal,
Wart.ImplicitConversion,
Wart.Nothing // needed because of the contexts compiler plugin
)
////////////////////////////////////////////////////////////////////////////////
// Test configuration
////////////////////////////////////////////////////////////////////////////////
// shows time for each test:
testOptions in Test += Tests.Argument("-oD")
// disables parallel exec
parallelExecution in Test := false
////////////////////////////////////////////////////////////////////////////////
// publishing
////////////////////////////////////////////////////////////////////////////////
bucketSuffix := "era7.com"
awsProfile := s"${organization.value}/${name.value}"
////////////////////////////////////////////////////////////////////////////////