// import sbt._ // import sbt.Keys._ // import java.io.File // import AssemblyKeys._ name := "nd4s_2.10" + "-0.6.0" scalaVersion := "2.10.4" version := "0.1.0-SNAPSHOT" // resolvers += "Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/" // resolvers += "Typesafe" at "https://repo.typesafe.com/typesafe/releases/" libraryDependencies ++= Seq( // "org.apache.spark" %% "spark-mllib_2.10" % "1.5.1" % Provided , // "org.apache.spark" %% "spark-core_2.10" % "1.5.1" % Provided // ("com.github.nearbydelta" %% "deepspark" % "1.2.0" ) "org.nd4j" % "nd4j-native-platform" % "0.6.0", "org.nd4j" % "nd4s_2.10" % "0.6.0" // ("org.json4s" % "json4s-jackson_2.10" % "3.3.0" ) ) // libraryDependencies += "com.github.nearbydelta" %% "deepspark" % "1.2.0" // libraryDependencies += "org.json4s" % "json4s-jackson_2.10" % "3.3.0" assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false) assemblyMergeStrategy in assembly := { case PathList(ps @ _*) if ps.last endsWith ".properties" => MergeStrategy.first case PathList(ps @ _*) if ps.last endsWith ".class" => MergeStrategy.first case x => val oldStrategy = (assemblyMergeStrategy in assembly).value oldStrategy(x) } // val libraryDependencies = "org.json4s" % "json4s-jackson_2.10" % "3.3.0" % "provided" // libraryDependencied ++= Seq( // ("org.json4s" % "json4s-jackson_2.12.0-M4" % "3.3.0" % "provided"). // exclude("org.scala-lang", "scala-library") // ) // libraryDependencies ++= Seq( // ("org.json4s" % "json4s-jackson_2.12.0-M4" % "3.3.0" % "provided"). // exclude("org.scala-lang", "scala-library") // ) // resolvers += "Apache repo" at "https://repository.apache.org/content/repositories/releases" // assemblySettings // mergeStrategy in assembly <<= (mergeStrategy in assembly) { (old) => { // case x => val oldStrategy = old(x) if (oldStrategy == MergeStrategy.deduplicate) MergeStrategy.discard else oldStrategy // } // }
project/assembly.sbt
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.3")