-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
69 lines (65 loc) · 2.58 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
val scalaTest = "org.scalatest" %% "scalatest" % "2.2.4" % "test"
val junit = "junit" % "junit" % "4.10" % "test"
val rocksDb = "org.rocksdb" % "rocksdbjni" % "3.10.1"
val hadoopCore = "org.apache.hadoop" % "hadoop-core" % "2.0.0-mr1-cdh4.2.1" % "provided"
val hadoopCommon = "org.apache.hadoop" % "hadoop-common" % "2.0.0-cdh4.2.1" % "provided"
val jacksonScala = "com.fasterxml.jackson.module" %% "jackson-module-scala" % "2.4.4"
val cascadingCore = "cascading" % "cascading-core" % "2.7.0" % "provided"
val cascadingLocal = "cascading" % "cascading-local" % "2.7.0" % "provided"
val cascadingHadoop = "cascading" % "cascading-hadoop" % "2.7.0" % "provided"
val scaldingCore = "com.twitter" %% "scalding-core" % "0.12.0" % "provided"
val appVersion = sys.env.getOrElse("SNAP_PIPELINE_COUNTER", "1.0.0-SNAPSHOT")
lazy val commonSettings = Seq(
organization := "com.indix",
organizationName := "Indix",
organizationHomepage := Some(url("http://www.indix.com")),
version := appVersion,
scalaVersion := "2.10.4",
crossPaths := false,
parallelExecution in This := false,
scalacOptions ++= Seq("-encoding", "UTF-8", "-deprecation", "-unchecked"),
javacOptions ++= Seq("-Xlint:deprecation", "-source", "1.7"),
resolvers ++= Seq(
"Cloudera Repo" at "https://repository.cloudera.com/artifactory/cloudera-repos/",
"conjars.org" at "http://conjars.org/repo"
)
)
lazy val publishSettings = Seq(
publishMavenStyle := true,
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
pomExtra :=
<url>https://github.com/ind9/rocksdb-io</url>
<licenses>
<license>
<name>Apache License</name>
<url>https://raw.githubusercontent.com/ind9/rocksdb-io/master/LICENSE</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:ind9/rocksdb-io.git</url>
<connection>scm:git:[email protected]:ind9/rocksdb-io.git</connection>
</scm>
<developers>
<developer>
<id>indix</id>
<name>Indix</name>
<url>http://www.indix.com</url>
</developer>
</developers>
)
lazy val rocksdbScalding = (project in file("."))
.settings(commonSettings: _*)
.settings(publishSettings: _*)
.settings(
name := "rocksdb-io",
libraryDependencies ++= Seq(
scalaTest, junit, rocksDb, hadoopCore, hadoopCommon, jacksonScala, cascadingCore, cascadingHadoop, scaldingCore
)
)