-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
90 lines (67 loc) · 2.64 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
85
86
87
88
89
name := "refined-anorm"
organization := "com.github.derekmorr"
version := "0.1"
lazy val commonSettings = Seq(
scalaVersion := "2.12.4",
crossScalaVersions := Seq("2.11.11", "2.12.4")
)
lazy val root = (project in file(".")).
configs(IntegrationTest).
settings(commonSettings: _*).
settings(Defaults.itSettings: _*)
libraryDependencies ++= {
Seq(
"com.typesafe.play" %% "anorm" % "2.5.3" % Compile,
"eu.timepit" %% "refined" % "0.8.4" % Compile,
"org.eu.acolyte" %% "jdbc-scala" % "1.0.46" % Test,
"org.scalacheck" %% "scalacheck" % "1.13.5" % "it,test",
"org.scalatest" %% "scalatest" % "3.0.4" % "it,test",
"org.pegdown" % "pegdown" % "1.6.0" % "it,test",
// technically these dependencies are only needed in "it" scope, but publishLocal
// will put them in compile scope unless they're tagged as "it,test"
// see https://github.com/sbt/sbt/issues/1380
"com.typesafe" % "config" % "1.3.1" % "it,test",
"com.zaxxer" % "HikariCP" % "2.7.2" % "it,test",
"org.postgresql" % "postgresql" % "42.0.0" % "it,test"
)
}
scalacOptions ++= Seq(
"-feature", "-unchecked", "-deprecation", "-Xcheckinit", "-Xlint",
"-Xfatal-warnings", "-g:line", "-Ywarn-dead-code", "-Ywarn-numeric-widen")
// don't let Ctrl-C exit
cancelable in Global := true
autoAPIMappings := true
// generate HTML reports for tests
(testOptions in Test) += Tests.Argument(TestFrameworks.ScalaTest, "-h", "target/report")
// show test durations
(testOptions in Test) += Tests.Argument(TestFrameworks.ScalaTest, "-oD")
// run tests in parallel
parallelExecution in Test := true
// cache dependency resolution information
updateOptions := updateOptions.value.withCachedResolution(true)
publishMavenStyle := true
publishArtifact in Test := false
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
pomIncludeRepository := { _ => false }
licenses := Seq("MIT License" -> url("http://www.opensource.org/licenses/mit-license.php"))
homepage := Some(url("https://github.com/derekmorr/refined-anorm/"))
scmInfo := Some(
ScmInfo(
url("http://github.com/derekmorr/refined-anorm/tree/master"),
"scm:[email protected]:derekmorr/refined-anorm.git"
)
)
developers := List(
Developer(
id = "derekmorr",
name = "Derek Morr",
email = "[email protected]",
url = url("https://github.com/derekmorr")
)
)