-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
71 lines (57 loc) · 2.24 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
name := "gnormalizer"
organization := "edu.upc.dama"
scalaVersion := "2.12.7"
/********* Bintray Publishing *********/
bintrayOrganization := Some("dama-upc")
bintrayRepository := "Babel-Platform"
licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0"))
homepage := Some(url("https://github.com/DAMA-UPC/gnormalizer"))
/************* DEPENDENCIES *************/
libraryDependencies ++= {
val fs2Version = "1.0.0"
val betterFilesVersion = "3.6.0"
Seq(
// https://github.com/functional-streams-for-scala/fs2
"co.fs2" %% "fs2-core" % fs2Version,
"co.fs2" %% "fs2-io" % fs2Version,
// https://github.com/pathikrit/better-files
"com.github.pathikrit" %% "better-files" % betterFilesVersion
)
}
/********** TEST DEPENDENCIES ************/
libraryDependencies ++= {
val specs2Version = "4.3.5"
val scalaCheckVersion = "1.14.0"
val scalamockVersion = "4.1.0"
Seq(
// Specs2 Test Framework - https://etorreborre.github.io/specs2/
"org.specs2" %% "specs2-core" % specs2Version % "test",
"org.specs2" %% "specs2-matcher-extra" % specs2Version % "test",
"org.specs2" %% "specs2-junit" % specs2Version % "test",
"org.specs2" %% "specs2-scalacheck" % specs2Version % "test",
// ScalaCheck - https://scalacheck.org/
"org.scalacheck" %% "scalacheck" % scalaCheckVersion % "test",
// Scalamock - https://github.com/paulbutcher/ScalaMock
"org.scalamock" %% "scalamock" % scalamockVersion % "test"
)
}
/************* TEST OPTIONS *************/
scalacOptions in Test ++= Seq("-Yrangepos")
parallelExecution in Test := true
testOptions += Tests.Argument(TestFrameworks.JUnit, "-q", "-v", "-s", "-a")
/************ WartRemover *************/
wartremoverErrors in (Compile, compile) ++= {
Warts.allBut(
Wart.MutableDataStructures, // We need them due the application performance requirements.
Wart.Var, // We need them due the application performance requirements.
Wart.NonUnitStatements, // Mutable Scala collections APIs always return Unit values.
Wart.PublicInference,
Wart.DefaultArguments,
Wart.FinalCaseClass
)
}
wartremoverErrors in (Test, test) ++= Warts.allBut(
Wart.FinalCaseClass,
Wart.NonUnitStatements,
Wart.PublicInference
)