• sbt assembly build.sbt content


    // 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")
  • 相关阅读:
    动态与静态Include
    java回收算法
    reflection是如何工作的。
    hashcode和equals的约定关系如下
    Java调试器
    混合赋值运算符的使用
    Spring
    Math.?
    oracle--触发器(转)
    oracle --游标详解(转)
  • 原文地址:https://www.cnblogs.com/suanec/p/5939066.html
Copyright © 2020-2023  润新知