-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
41 lines (40 loc) · 1.64 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
lazy val buildSettings = Seq(
name := "elastic-http",
organization := "com.blinkbox.books",
version := scala.util.Try(scala.io.Source.fromFile("VERSION").mkString.trim).getOrElse("0.0.0"),
scalaVersion := "2.11.4",
scalacOptions := Seq("-unchecked", "-deprecation", "-feature", "-encoding", "utf8", "-target:jvm-1.7"),
libraryDependencies ++= Seq(
"com.sksamuel.elastic4s" %% "elastic4s" % "1.4.9",
"com.typesafe.akka" %% "akka-actor" % "2.3.8",
"io.spray" %% "spray-client" % "1.3.2",
"org.json4s" %% "json4s-jackson" % "3.2.11",
"org.elasticsearch" % "elasticsearch-groovy" % "1.4.2",
"org.scalatest" %% "scalatest" % "2.2.1" % Test
),
publishMavenStyle := true,
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshot")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
publishArtifact in Test := false,
homepage := Some(url("http://github.com/blinkboxbooks/elastic-http")),
licenses := Seq("MIT" -> url("http://www.opensource.org/licenses/mit-license.php")),
pomExtra := (
<scm>
<url>[email protected]:blinkboxbooks/elastic-http.git</url>
<connection>scm:git:[email protected]:blinkboxbooks/elastic-http.git</connection>
</scm>
<developers>
<developer>
<id>astrac</id>
<name>Aldo Stracquadanio</name>
<url>http://blog.astrac.me</url>
</developer>
</developers>)
)
lazy val root = (project in file(".")).
settings(buildSettings: _*)