// 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")

sbt assembly build.sbt content的更多相关文章

  1. build.sbt的定义格式

    一个简单的build.sbt文件内容如下: name := "hello" // 项目名称 organization := "xxx.xxx.xxx" // 组 ...

  2. SBT Assembly - Deduplicate error & Exclude error

    sbt assembly java.lang.RuntimeException: deduplicate: different file contents found in the following ...

  3. sbt assembly a fat jar for spark-submit cluster model

    在用spark-submit提交作业时,用sbt package打包好的jar程序,可以很好的运行在client模式,当在cluster模式, 一直报错:Exception in thread &qu ...

  4. Error while importing sbt project:--创建sbt项目导入文件出错

    错误截图如下: Error while importing sbt project: List([info] Loading global plugins from C:\Users\RYJ\.sbt ...

  5. sbt 以及 IDEA sbt 插件安装配置教程(转)

    1. 在Windows中安装sbt 下载 官网: http://www.scala-sbt.org/ github: https://github.com/sbt/sbt/releases/downl ...

  6. sbt打包error(sbt.librarymanagement.ResolveException: unresolved dependency: org.apache.spark#spark-streaming;2.3.1: not found)

    解决方法: 修改simple.sbt文件: cd /usr/local/spark/myapp/TestStream vim simple.sbt 切记:中间相连部分两个百分号一定要写上

  7. Spark(3) - External Data Source

    Introduction Spark provides a unified runtime for big data. HDFS, which is Hadoop's filesystem, is t ...

  8. 服务器上搭建spark开发环境

    1.安装相应的软件 (1)安装jdk 下载地址:http://www.Oracle.com/technetwork/java/javase/downloads/index.html (2)安装scal ...

  9. 编译安装spark 1.5.x(Building Spark)

    原文连接:http://spark.apache.org/docs/1.5.0/building-spark.html · Building with build/mvn · Building a R ...

随机推荐

  1. javascript 简单加解密

    //加密 function MyEncrypt(txt) { var sb = ""; var rand = 0; for (var i=0;i<txt.length;i++ ...

  2. matlab练习程序(碎片)

    这个算法是对photoshop中滤镜->像素化->碎片这个功能的学习. PS这个功能好像不带参数,不过我这里有滤波半径r可以进行控制. 因为我是看效果猜算法的,效果肯定有所区别. 我的想法 ...

  3. HDU 1561 The more, The Better 树形DP

    The more, The Better Problem Description   ACboy很喜欢玩一种战略游戏,在一个地图上,有N座城堡,每座城堡都有一定的宝物,在每次游戏中ACboy允许攻克M ...

  4. python 多态

    多态 类具有继承关系,并且子类类型可以向上转型看做父类类型,如果我们从 Person 派生出 Student和Teacher ,并都写了一个 whoAmI() 方法: class Person(obj ...

  5. nefu 197 KMP

    Description 在信息检索系统中一个很重要的环节就是关键字符串的查找,从而很多对自己有用的信息.给你一个很长的一段文字, 和一个关键信息字符串,现在要你判断这段文字里面是否有关键字符串. In ...

  6. John the Ripper

    John the RipperJohn the Ripper(简称John)是一款著名的密码破解工具.它主要针对各种Hash加密的密文.它不同于Rainbow Table方式.它采用实时运算的方式和密 ...

  7. 5、利用控件TVCLZip和TIdFTP压缩文件并上传到FTP的线程单元pas 改进版

    用到临界区 保护写日志的函数: 递归函数 删除目录下的所有文件: 循环创建或判断FTP的目录: 可改进的地方:循环压缩深层次目录的所以文件: 实现断点续传,或断点下载: {************** ...

  8. 非传统题【A002】

    [A002]非传统题[难度A]————————————————————————————————————————————————————————————————————————————————————— ...

  9. 向Web开发人员推荐12款优秀的 Twitter Bootstrap 组件和工具

    http://www.cnblogs.com/lhb25/archive/2012/09/11/resources-that-complement-twitter-bootstrap.html

  10. XIII Open Cup named after E.V. Pankratiev. GP of SPb

    A. Graph Coloring 答案为$1$很好判,为$2$只需要二分图染色,对于$3$,首先爆搜哪些边要染成第$3$种颜色,然后二分图染色判定即可. B. Decimal Fraction 枚举 ...