blob: 865386fee3b8ad1a0e0a1d90c7cac41211a0231b [file] [log] [blame]
// Copyright 2015 TappingStone, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
import AssemblyKeys._
assemblySettings
name := "tools"
libraryDependencies ++= Seq(
"com.github.scopt" %% "scopt" % "3.2.0",
"io.spray" %% "spray-can" % "1.3.2",
"io.spray" %% "spray-routing" % "1.3.2",
"me.lessis" % "semverfi_2.10" % "0.1.3",
"org.apache.hadoop" % "hadoop-common" % "2.5.0",
"org.apache.hadoop" % "hadoop-hdfs" % "2.5.0",
"org.apache.spark" %% "spark-core" % sparkVersion.value % "provided",
"org.apache.spark" %% "spark-sql" % sparkVersion.value % "provided",
"org.clapper" %% "grizzled-slf4j" % "1.0.2",
"org.json4s" %% "json4s-native" % json4sVersion.value,
"org.json4s" %% "json4s-ext" % json4sVersion.value,
"org.scalaj" %% "scalaj-http" % "1.1.0",
"org.spark-project.akka" %% "akka-actor" % "2.3.4-spark",
"io.spray" %% "spray-testkit" % "1.3.2" % "test",
"org.specs2" %% "specs2" % "2.3.13" % "test",
"org.spark-project.akka" %% "akka-slf4j" % "2.3.4-spark")
excludedJars in assembly <<= (fullClasspath in assembly) map { cp =>
cp filter { _.data.getName match {
case "asm-3.1.jar" => true
case "commons-beanutils-1.7.0.jar" => true
case "commons-beanutils-core-1.8.0.jar" => true
case "slf4j-log4j12-1.7.5.jar" => true
case _ => false
}}
}
// skip test in assembly
test in assembly := {}
outputPath in assembly := baseDirectory.value.getAbsoluteFile.getParentFile /
"assembly" / ("pio-assembly-" + version.value + ".jar")
cleanFiles <+= baseDirectory { base => base.getParentFile / "assembly" }