-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
executable file
·85 lines (75 loc) · 2.05 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import sbt.Keys._
name := "uuid"
organization := "jan.cajthaml"
version := {
val versionFile = scala.io.Source.fromFile("VERSION")
try {
versionFile.mkString.trim
} finally {
versionFile.close()
}
}
description := "fast uuid generator"
scalaVersion in Global := "2.12.2"
crossScalaVersions in Global := Seq("2.11.8", scalaVersion.value)
dependencyOverrides += "org.scala-lang" % "scala-compiler" % scalaVersion.value
scalacOptions in Compile := Seq(
"-encoding",
"utf-8",
"-explaintypes",
"-feature",
"-unchecked",
"-deprecation",
"-language:postfixOps",
"-language:existentials",
"-language:experimental.macros",
"-language:higherKinds",
"-language:implicitConversions",
"-Xcheckinit",
"-Xlint",
"-Xlint:inaccessible",
"-Xlint:nullary-override",
"-Xlint:nullary-unit",
"-Xlint:option-implicit",
"-Xlint:package-object-classes",
"-Xlint:poly-implicit-overload",
"-Xlint:private-shadow",
"-Xlint:unsound-match",
"-Xlint:missing-interpolator",
"-Xfuture",
"-Yrangepos",
"-Yno-adapted-args",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-inaccessible",
"-Ywarn-value-discard",
"-Ywarn-unused-import",
"-Ywarn-unused"
)
scalacOptions in (Compile, console) ~= (_.filterNot(
Set(
"-Ywarn-unused:imports"
)))
scalacOptions in Test := Seq(
"-Ywarn-unused-import",
"-Ywarn-unused"
)
lazy val test = Project(
"test",
file("."),
settings = Defaults.coreDefaultSettings ++ Seq(
publishArtifact := false,
resolvers ++= Seq(
"Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots",
"Sonatype OSS Releases" at "https://oss.sonatype.org/content/repositories/releases",
"Artima Maven Repository" at "http://repo.artima.com/releases"
),
libraryDependencies ++= Seq(
"com.storm-enroute" %% "scalameter" % "0.8.2" % "test",
"org.scalatest" %% "scalatest" % "3.0.0" % "test"
),
testFrameworks += new TestFramework("org.scalameter.ScalaMeterFramework"),
parallelExecution in Test := false,
logBuffered := false
)
)