forked from cphylabs/hbridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
65 lines (50 loc) · 2.03 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
organization := "org.cphylabs"
name := "hbridge"
version := "1.1.9-SNAPSHOT"
scalaVersion := "2.10.0"
retrieveManaged := true
// Global Repository resolver
resolvers ++= Seq(
"Thrift-Repo" at "http://people.apache.org/~rawson/repo",
"Cloudera-jdo" at "https://repository.cloudera.com/artifactory/cdh-build",
"ClouderaRepo" at "https://repository.cloudera.com/content/repositories/releases",
"ClouderaRcs" at "https://repository.cloudera.com/artifactory/cdh-releases-rcs",
"CRepos" at "https://repository.cloudera.com/artifactory/cloudera-repos/",
"Sonatype Scala-Tools" at "https://oss.sonatype.org/content/groups/scala-tools/",
"Apache HBase" at "https://repository.apache.org/content/repositories/releases",
"Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases",
"Typesafe Snapshots Repository" at "http://repo.typesafe.com/typesafe/snapshots/",
"Twitter Repository" at "http://maven.twttr.com"
)
libraryDependencies ++= Seq(
"org.apache.hadoop" % "hadoop-client" % "2.0.0-cdh4.0.1" excludeAll (
ExclusionRule(organization = "org.jruby"),
ExclusionRule(organization = "org.slf4j")) ,
"org.apache.hbase" % "hbase" % "0.92.1-cdh4.0.1" excludeAll (
ExclusionRule(organization = "org.jruby"),
ExclusionRule(organization = "org.slf4j")),
"org.clapper" % "grizzled-slf4j_2.10" % "1.0.1",
"joda-time" % "joda-time" % "2.0",
"org.joda" % "joda-convert" % "1.1"
)
/* publishing */
publishMavenStyle := true
publishTo <<= version { (v: String) =>
val cphy = "https://cloudphysics.artifactoryonline.com/cloudphysics/"
if (v.trim.endsWith("SNAPSHOT")) Some(
"cphy snapshots" at cphy + "oss-snapshots-local"
)
else Some("releases" at cphy + "oss-releases-local")
}
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
pomExtra := (
<developers>
<developer>
<id>cphy</id>
<name>CloudPhysics Inc</name>
<email>[email protected]</email>
</developer>
</developers>
)