This repository has been archived by the owner on Sep 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
/
build.sbt
46 lines (35 loc) · 1.71 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
import sbtassembly.AssemblyPlugin.autoImport._
name := "googlegenomics-spark-examples"
version := "1.0"
scalaVersion := "2.11.8"
scalacOptions += "-target:jvm-1.7"
val sparkVersion = "1.6.1"
val genomicsUtilsVersion = "v1-0.3"
ivyScala := ivyScala.value map { _.copy(overrideScalaVersion = true) }
libraryDependencies ++= Seq(
"com.google.cloud.genomics" % "google-genomics-utils" % genomicsUtilsVersion excludeAll(
ExclusionRule(organization = "org.mortbay.jetty", name = "servlet-api"),
ExclusionRule(organization = "com.google.guava", name = "guava-jdk5"),
ExclusionRule(organization = "com.fasterxml.jackson.core", name = "jackson-core"),
ExclusionRule(organization = "com.sun.mail", name="javax.mail")
),
"org.apache.spark" %% "spark-core" % sparkVersion % "provided",
"org.apache.spark" %% "spark-mllib" % sparkVersion % "provided",
"org.rogach" %% "scallop" % "0.9.5",
"org.scalatest" %% "scalatest" % "2.2.1" % "test"
)
resolvers += Resolver.mavenLocal
mergeStrategy in assembly <<= (mergeStrategy in assembly) { (old) =>
{
case PathList("META-INF", "io.netty.versions.properties") => MergeStrategy.first
case x => old(x)
}
}
assemblyShadeRules in assembly := Seq(
ShadeRule.rename("io.netty.handler.**" -> "shadeio.io.netty.handler.@1").inAll,
ShadeRule.rename("io.netty.channel.**" -> "shadeioi.io.netty.channel.@1").inAll,
ShadeRule.rename("io.netty.util.**" -> "shadeio.io.netty.util.@1").inAll,
ShadeRule.rename("io.netty.bootstrap.**" -> "shadeio.io.netty.bootstrap.@1").inAll,
ShadeRule.rename("com.google.common.**" -> "shade.com.google.common.@1").inAll,
ShadeRule.rename("com.google.protobuf.**" -> "shade.com.google.protobuf.@1").inAll
)