forked from debasishg/scala-redis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
40 lines (30 loc) · 1.48 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
name := "RedisClient"
organization := "net.debasishg"
version := "2.4.2"
crossScalaVersions := Seq("2.9.1", "2.9.0", "2.8.1", "2.8.0")
resolvers += "Twitter Repository" at "http://maven.twttr.com"
libraryDependencies <++= scalaVersion { scalaVersion =>
// Helper for dynamic version switching based on scalaVersion
val scalatestVersion: String => String = Map(("2.8.0" -> "1.3.1.RC2"), ("2.8.1" -> "1.5.1")) getOrElse (_, "1.6.1")
// The dependencies with proper scope
Seq(
"commons-pool" % "commons-pool" % "1.5.6",
"org.slf4j" % "slf4j-api" % "1.6.1",
"org.slf4j" % "slf4j-log4j12" % "1.6.1" % "provided",
"log4j" % "log4j" % "1.2.16" % "provided",
"junit" % "junit" % "4.8.1" % "test",
"org.scalatest" %% "scalatest" % scalatestVersion(scalaVersion) % "test",
"com.twitter" % "util" % "1.11.4" % "test",
"com.twitter" % "finagle-core" % "1.9.0" % "test"
)
}
scalacOptions ++= Seq("-encoding", "UTF-8", "-deprecation", "-Xcheckinit")
// TODO: Enable this with SBT 0.10.2 (See: https://github.com/harrah/xsbt/issues/147)
// scaladocOptions <++= (name, version) map { (name, ver) =>
// Seq("-doc-title", name, "-doc-version", ver)
//}
publishTo := Some(Resolver.file("file", new File( "./repository" )) )
// disable publishing the main API jar
publishArtifact in (Compile, packageDoc) := false
// disable publishing the main sources jar
publishArtifact in (Compile, packageSrc) := false