forked from scredis/scredis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
93 lines (69 loc) · 2.59 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
name := "scredis"
organization := "com.github.scredis"
scalaVersion := "2.13.8"
crossScalaVersions := Seq("2.11.12", "2.12.15", scalaVersion.value)
scalacOptions ++= Seq(
"-deprecation",
"-feature",
"-Xfatal-warnings",
"-Ywarn-dead-code"
)
scalacOptions in (Compile,doc) := Seq("-no-link-warnings")
autoAPIMappings := true
enablePlugins(BuildInfoPlugin)
enablePlugins(GhpagesPlugin)
enablePlugins(SiteScaladocPlugin)
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion)
buildInfoPackage := "scredis"
buildInfoOptions += BuildInfoOption.BuildTime
git.remoteRepo := "[email protected]:scredis/scredis.git"
val akkaV = "2.5.32"
val loggingV = "3.9.4"
val configV = "1.4.0"
val collectionCompatV = "2.6.0"
val typesafeConfigV = "1.3.3"
libraryDependencies ++= Seq(
"com.typesafe.scala-logging" %% "scala-logging" % loggingV,
"com.typesafe" % "config" % typesafeConfigV,
"com.typesafe.akka" %% "akka-actor" % akkaV,
"org.scala-lang.modules" %% "scala-collection-compat" % collectionCompatV,
"org.scalatest" %% "scalatest" % "3.2.11" % Test,
"org.scalatestplus" %% "scalacheck-1-14" % "3.2.2.0" % Test,
"org.scalacheck" %% "scalacheck" % "1.15.2" % Test,
"com.storm-enroute" %% "scalameter" % "0.19" % Test,
"org.slf4j" % "slf4j-simple" % "1.7.33" % Test
)
Test / testOptions += Tests.Argument(TestFrameworks.ScalaTest, "-F", sys.props.getOrElse("F", "1.0"))
// required so that test actor systems don't get messed up
Test / fork := true
Test / parallelExecution := false
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
licenses := Seq(("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0.html")))
scmInfo := Some(ScmInfo(
url("https://github.com/scredis/scredis"),
"scm:[email protected]:scredis/scredis.git"
))
homepage := Some(url("https://github.com/scredis/scredis"))
developers := List(
Developer(
id="kpbochenek",
name="kpbochenek",
email="[email protected]",
url=url("https://github.com/kpbochenek")
))
bintrayVcsUrl := Some("https://github.com/scredis/scredis.git")
bintrayOrganization := Some("scredis")
bintrayRepository := "maven"
bintrayPackageLabels := Seq("redis")
val scalaMeterFramework = new TestFramework("org.scalameter.ScalaMeterFramework")
testFrameworks += scalaMeterFramework
concurrentRestrictions in Global += Tags.limit(Tags.Test, 1)
// Documentation
enablePlugins(ParadoxPlugin)
paradoxTheme := Some(builtinParadoxTheme("generic"))
// Scalameter Benchmark tests
lazy val Benchmark = config("bench") extend Test
configs(Benchmark)
inConfig(Benchmark)(Defaults.testSettings)