forked from whisklabs/blackpepper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
29 lines (19 loc) · 958 Bytes
/
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
name := "blackpepper"
organization := "com.whisk"
val gitHeadCommitSha = settingKey[String]("current git commit SHA")
gitHeadCommitSha in ThisBuild := Process("git rev-parse --short HEAD").lines.head
version in ThisBuild := "0.1.0-" + gitHeadCommitSha.value
scalaVersion := "2.10.3"
scalariformSettings
scalacOptions ++= Seq("-Xcheckinit", "-encoding", "utf8", "-deprecation", "-unchecked", "-feature", "-language:_")
resolvers += "typesafe" at "http://repo.typesafe.com/typesafe/releases/"
libraryDependencies ++= Seq(
"com.typesafe.play" %% "play-json" % "2.2.1",
"com.datastax.cassandra" % "cassandra-driver-core" % "2.0.0-rc3",
"org.apache.cassandra" % "cassandra-all" % "2.0.2" % "test",
"org.specs2" %% "specs2-core" % "2.3.4" % "test")
publishTo := {
val dir = if (version.value.trim.endsWith(gitHeadCommitSha.value)) "snapshots" else "releases"
val repo = Path.userHome / "mvn-repo" / dir
Some(Resolver.file("file", repo) )
}