-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
24 lines (18 loc) · 821 Bytes
/
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
organization := "org.tensorflow"
name := "tfrecords-hadoop"
version := "0.12"
scalaVersion := "2.11.8"
libraryDependencies ++=
"com.google.guava" % "guava" % "20.0" ::
"com.google.protobuf" % "protobuf-java" % "3.1.0" ::
"org.apache.hadoop" % "hadoop-client" % "2.7.3" % Provided ::
Nil
assemblyShadeRules in assembly ++=
// rename the protobuf3 to avoid conflicting with Hadoop's protobuf2 dependency
ShadeRule.rename("com.google.protobuf.**" -> "protobuf3.@1").inAll ::
// we need a newer guava for crc32 hashing
ShadeRule.rename("com.google.common.**" -> "guava20.@1").inAll ::
// Shade the thirdparty files
ShadeRule.rename("com.google.thirdparty.**" -> "guava20.@1").inAll ::
Nil
assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false)