-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathbuild.sbt
83 lines (64 loc) · 2.16 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
import SiteKeys._
import GhPagesKeys._
import GitKeys._
organization := "com.livestream"
name := "scredis"
version := "2.0.8"
scalaVersion := "2.11.2"
scalacOptions ++= Seq("-deprecation")
libraryDependencies ++= Seq(
"com.typesafe.scala-logging" %% "scala-logging" % "3.1.0",
"com.typesafe" % "config" % "1.2.0",
"com.typesafe.akka" %% "akka-actor" % "2.3.3",
"org.scalatest" %% "scalatest" % "2.2.0" % "test",
"com.storm-enroute" %% "scalameter" % "0.6" % "test",
"org.slf4j" % "slf4j-simple" % "1.7.7" % "test"
)
publishTo <<= version { (v: String) =>
val repository = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT"))
Some("snapshots" at repository + "content/repositories/snapshots")
else
Some("releases" at repository + "service/local/staging/deploy/maven2")
}
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
pomExtra := (
<url>https://github.com/Livestream/scredis</url>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:Livestream/scredis.git</url>
<connection>scm:git:[email protected]:Livestream/scredis.git</connection>
</scm>
<developers>
<developer>
<id>curreli</id>
<name>Alexandre Curreli</name>
<url>https://github.com/curreli</url>
</developer>
</developers>
)
parallelExecution in Test := false
testFrameworks += new TestFramework("org.scalameter.ScalaMeterFramework")
concurrentRestrictions in Global += Tags.limit(Tags.Test, 1)
site.settings
ghpages.settings
siteMappings <++= (mappings in packageDoc in Compile, version) map { (m, v) =>
for ((f, d) <- m) yield (
f,
if (v.trim.endsWith("SNAPSHOT")) ("api/snapshot/" + d) else ("api/"+v+"/"+d)
)
}
synchLocal <<= (privateMappings, updatedRepository, gitRunner, streams) map { (mappings, repo, git, s) =>
val betterMappings = mappings map { case (file, target) => (file, repo / target) }
IO.copy(betterMappings)
repo
}
git.remoteRepo := "[email protected]:Livestream/scredis.git"