-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
100 lines (76 loc) · 3.43 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
90
91
92
93
94
95
96
97
98
99
100
organization := "com.github.michaelahlers"
name := "playful"
description := "Odds and ends for developers using Lightbend's Play Framework."
licenses += "MIT" -> url("http://opensource.org/licenses/MIT")
homepage := Some(url("http://github.com/michaelahlers/michaelahlers-playful"))
startYear := Some(2016)
developers :=
Developer("michaelahlers", "Michael Ahlers", "[email protected]", url("http://github.com/michaelahlers")) ::
Nil
scmInfo :=
Some(ScmInfo(
browseUrl = url("http://github.com/michaelahlers/michaelahlers-playful"),
connection = "scm:git:https://github.com:michaelahlers/michaelahlers-playful.git",
devConnection = Some("scm:git:[email protected]:michaelahlers/michaelahlers-playful.git")
))
scalaVersion := "2.11.7"
scalacOptions ++=
"-feature" ::
"-target:jvm-1.8" ::
// "-Xlint" ::
"-Xfatal-warnings" ::
Nil
scalacOptions in Test ++=
Nil
testFrameworks += new TestFramework("org.scalameter.ScalaMeterFramework")
logBuffered := false
/** Parallel execution tests defeats the value of benchmark tests. */
parallelExecution in Benchmark := false
resolvers += "Sonatype (releases)" at "https://oss.sonatype.org/content/repositories/releases"
resolvers += "Sonatype (snapshots)" at "https://oss.sonatype.org/content/repositories/snapshots"
/** Compile and runtime dependencies. */
libraryDependencies ++=
"ch.qos.logback" % "logback-classic" % "1.1.3" ::
"com.typesafe.play" %% "play" % "2.4.6" ::
"com.typesafe.play" %% "play-iteratees" % "2.4.6" ::
"com.typesafe.play" %% "play-json" % "2.4.6" ::
"com.typesafe.scala-logging" %% "scala-logging" % "3.1.0" ::
Nil
/** Test dependencies. */
libraryDependencies ++=
"com.storm-enroute" %% "scalameter" % "0.7" % "test" ::
"org.scalamock" %% "scalamock-scalatest-support" % "3.2.2" % "test" ::
"org.scalactic" %% "scalactic" % "2.2.6" % "test" ::
"org.scalatest" %% "scalatest" % "2.2.6" % "test" ::
"org.scalatestplus" %% "play" % "1.4.0" % "test" ::
"com.typesafe.play" %% "play-test" % "2.4.6" % "test" ::
Nil
/** As of March 26, 2016, this supports issue #9 (value assignment as arbitrary `JsPath`) and may be eventually removed to reduce dependencies. */
val monocleLibraryVersion = "1.2.0"
libraryDependencies ++=
"com.github.julien-truffaut" %% "monocle-core" % monocleLibraryVersion ::
//"com.github.julien-truffaut" %% "monocle-generic" % monocleLibraryVersion ::
//"com.github.julien-truffaut" %% "monocle-macro" % monocleLibraryVersion ::
//"com.github.julien-truffaut" %% "monocle-state" % monocleLibraryVersion ::
//"com.github.julien-truffaut" %% "monocle-refined" % monocleLibraryVersion ::
//"com.github.julien-truffaut" %% "monocle-law" % monocleLibraryVersion % "test" ::
Nil
publishMavenStyle := true
/** Test artifacts are desired. */
publishArtifact in Test := true
publishTo := {
val host = "https://oss.sonatype.org"
if (isSnapshot.value) Some("snapshots" at s"$host/content/repositories/snapshots")
else Some("releases" at s"$host/service/local/staging/deploy/maven2")
}
pomIncludeRepository := { _ => false }
lazy val Benchmark = config("bench") extend Test
lazy val playful =
(project in file("."))
.enablePlugins(BuildInfoPlugin)
.settings(
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion),
buildInfoPackage := "ahlers.michael.playful"
)
.configs(Benchmark)
.settings(inConfig(Benchmark)(Defaults.testSettings): _*)