forked from vidhyaarvind/spark-statsd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
79 lines (58 loc) · 2.29 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
69
70
71
72
73
74
75
76
77
78
79
name := "spark-statsd"
version := "1.0.0"
organization := "spark.metrics"
scalaVersion := "2.10.4"
sparkVersion := "1.5.2"
//sparkComponents += "core"
spName := "vidhyaarvind/spark-statsd"
spShortDescription := "Statsd metrics reporter for spark"
spDescription := """Statsd metrics reporter for spark.
|Helps spark to push metrics to statsd. See ReadMe for more details""".stripMargin
licenses += "Apache-2.0" -> url("http://opensource.org/licenses/Apache-2.0")
spAppendScalaVersion := true
spIncludeMaven := true
credentials += Credentials(Path.userHome / ".ivy2" / ".sbtcredentials")
resolvers += "Bintray" at "https://dl.bintray.com/readytalk/maven"
libraryDependencies += "com.readytalk" % "metrics3-statsd" % "4.1.0"
assemblyJarName in assembly := s"${name.value}-${version.value}.jar"
assemblyMergeStrategy in assembly := {
case "BUILD" => MergeStrategy.discard
case other => MergeStrategy.defaultMergeStrategy(other)
case PathList("META-INF", xs @ _*) =>
(xs map {_.toLowerCase}) match {
case ("manifest.mf" :: Nil) | ("index.list" :: Nil) | ("dependencies" :: Nil) =>
MergeStrategy.discard
case ps @ (x :: xs) if ps.last.endsWith(".sf") || ps.last.endsWith(".dsa") =>
MergeStrategy.discard
case "plexus" :: xs =>
MergeStrategy.discard
case "services" :: xs =>
MergeStrategy.filterDistinctLines
case ("spring.schemas" :: Nil) | ("spring.handlers" :: Nil) =>
MergeStrategy.filterDistinctLines
case _ => MergeStrategy.deduplicate
}
}
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
pomExtra := (
<url>https://github.com/vidhyaarvind/spark-statsd</url>
<licenses>
<license>
<name>Apache License, Verision 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:vidhyaarvind/spark-statsd.git</url>
<connection>scm:git:[email protected]:vidhyaarvind/spark-statsd.git</connection>
</scm>
<developers>
<developer>
<id>vidhyaarvind</id>
<name>Vidhya Arvind</name>
<url>https://github.com/vidhyaarvind</url>
</developer>
</developers>)