This repository has been archived by the owner on Oct 19, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
generic.sbt
77 lines (66 loc) · 2.41 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
68
69
70
71
72
73
74
75
76
77
// 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",
<<<<<<< HEAD
"-Xfatal-warnings",
"-Xlog-reflective-calls",
// "-Ywarn-unused",
// "-Ywarn-adapted-args",
"-opt-warnings:_",
"-unchecked",
// "-Xstrict-inference",
"-Ywarn-unused-import",
=======
"-unchecked",
>>>>>>> d0cecdf2167a4359578e28fef42a5e268fc3b789
"-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"
////////////////////////////////////////////////////////////////////////////////