2013-07-16 20:21:33 -04:00
|
|
|
/*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed with
|
|
|
|
* this work for additional information regarding copyright ownership.
|
|
|
|
* The ASF licenses this file to You 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.
|
|
|
|
*/
|
2013-04-07 08:17:38 -04:00
|
|
|
|
2011-07-14 22:38:25 -04:00
|
|
|
import sbt._
|
2012-10-01 03:17:13 -04:00
|
|
|
import sbt.Classpaths.publishTask
|
2011-07-14 22:38:25 -04:00
|
|
|
import Keys._
|
2011-11-09 00:45:29 -05:00
|
|
|
import sbtassembly.Plugin._
|
|
|
|
import AssemblyKeys._
|
2012-10-13 18:55:39 -04:00
|
|
|
// For Sonatype publishing
|
2012-10-14 20:36:20 -04:00
|
|
|
//import com.jsuereth.pgp.sbtplugin.PgpKeys._
|
2011-07-14 22:38:25 -04:00
|
|
|
|
|
|
|
object SparkBuild extends Build {
|
2012-03-17 15:31:34 -04:00
|
|
|
// Hadoop version to build against. For example, "0.20.2", "0.20.205.0", or
|
2013-02-25 18:38:21 -05:00
|
|
|
// "1.0.4" for Apache releases, or "0.20.2-cdh3u5" for Cloudera Hadoop.
|
2013-04-29 20:08:45 -04:00
|
|
|
val HADOOP_VERSION = "1.0.4"
|
2012-10-09 18:21:38 -04:00
|
|
|
val HADOOP_MAJOR_VERSION = "1"
|
2013-04-29 20:08:45 -04:00
|
|
|
val HADOOP_YARN = false
|
2011-07-14 22:38:25 -04:00
|
|
|
|
2012-10-09 18:21:38 -04:00
|
|
|
// For Hadoop 2 versions such as "2.0.0-mr1-cdh4.1.1", set the HADOOP_MAJOR_VERSION to "2"
|
|
|
|
//val HADOOP_VERSION = "2.0.0-mr1-cdh4.1.1"
|
|
|
|
//val HADOOP_MAJOR_VERSION = "2"
|
2013-04-07 08:17:38 -04:00
|
|
|
//val HADOOP_YARN = false
|
|
|
|
|
|
|
|
// For Hadoop 2 YARN support
|
2013-04-29 20:08:45 -04:00
|
|
|
//val HADOOP_VERSION = "2.0.2-alpha"
|
|
|
|
//val HADOOP_MAJOR_VERSION = "2"
|
|
|
|
//val HADOOP_YARN = true
|
2011-07-14 22:38:25 -04:00
|
|
|
|
2013-08-09 16:54:41 -04:00
|
|
|
// HBase version; set as appropriate.
|
2013-08-09 15:45:18 -04:00
|
|
|
val HBASE_VERSION = "0.94.6"
|
|
|
|
|
2013-07-18 01:59:00 -04:00
|
|
|
lazy val root = Project("root", file("."), settings = rootSettings) aggregate(core, repl, examples, bagel, streaming, mllib, tools)
|
2011-07-14 22:38:25 -04:00
|
|
|
|
|
|
|
lazy val core = Project("core", file("core"), settings = coreSettings)
|
|
|
|
|
2013-07-30 21:31:11 -04:00
|
|
|
lazy val repl = Project("repl", file("repl"), settings = replSettings) dependsOn (core) dependsOn(bagel) dependsOn(mllib)
|
2011-07-14 22:38:25 -04:00
|
|
|
|
2013-08-06 18:43:46 -04:00
|
|
|
lazy val examples = Project("examples", file("examples"), settings = examplesSettings) dependsOn (core) dependsOn (streaming) dependsOn(mllib)
|
2011-07-14 22:38:25 -04:00
|
|
|
|
2013-07-18 01:59:00 -04:00
|
|
|
lazy val tools = Project("tools", file("tools"), settings = examplesSettings) dependsOn (core) dependsOn (streaming)
|
|
|
|
|
2011-07-14 22:38:25 -04:00
|
|
|
lazy val bagel = Project("bagel", file("bagel"), settings = bagelSettings) dependsOn (core)
|
|
|
|
|
2012-07-28 23:03:26 -04:00
|
|
|
lazy val streaming = Project("streaming", file("streaming"), settings = streamingSettings) dependsOn (core)
|
|
|
|
|
2013-07-05 14:38:53 -04:00
|
|
|
lazy val mllib = Project("mllib", file("mllib"), settings = mllibSettings) dependsOn (core)
|
2013-07-05 14:13:41 -04:00
|
|
|
|
2012-10-01 03:17:13 -04:00
|
|
|
// A configuration to set an alternative publishLocalConfiguration
|
|
|
|
lazy val MavenCompile = config("m2r") extend(Compile)
|
2012-10-01 18:34:47 -04:00
|
|
|
lazy val publishLocalBoth = TaskKey[Unit]("publish-local", "publish local for m2 and ivy")
|
2012-10-01 03:17:13 -04:00
|
|
|
|
2011-07-14 22:38:25 -04:00
|
|
|
def sharedSettings = Defaults.defaultSettings ++ Seq(
|
|
|
|
organization := "org.spark-project",
|
2013-04-23 23:27:25 -04:00
|
|
|
version := "0.8.0-SNAPSHOT",
|
|
|
|
scalaVersion := "2.9.3",
|
2013-03-24 19:20:34 -04:00
|
|
|
scalacOptions := Seq("-unchecked", "-optimize", "-deprecation"),
|
2011-08-30 01:58:53 -04:00
|
|
|
unmanagedJars in Compile <<= baseDirectory map { base => (base / "lib" ** "*.jar").classpath },
|
2011-07-14 22:38:25 -04:00
|
|
|
retrieveManaged := true,
|
2013-01-08 15:44:33 -05:00
|
|
|
retrievePattern := "[type]s/[artifact](-[revision])(-[classifier]).[ext]",
|
2011-07-14 22:38:25 -04:00
|
|
|
transitiveClassifiers in Scope.GlobalScope := Seq("sources"),
|
2011-07-20 20:04:29 -04:00
|
|
|
testListeners <<= target.map(t => Seq(new eu.henkelmann.sbt.JUnitXmlTestsListener(t.getAbsolutePath))),
|
2012-10-05 23:59:31 -04:00
|
|
|
|
2013-04-23 23:27:25 -04:00
|
|
|
// Fork new JVMs for tests and set Java options for those
|
|
|
|
fork := true,
|
2013-06-22 10:48:20 -04:00
|
|
|
javaOptions += "-Xmx2500m",
|
2013-04-23 23:27:25 -04:00
|
|
|
|
|
|
|
// Only allow one test at a time, even across projects, since they run in the same JVM
|
|
|
|
concurrentRestrictions in Global += Tags.limit(Tags.Test, 1),
|
|
|
|
|
|
|
|
// Shared between both core and streaming.
|
2013-02-25 03:07:07 -05:00
|
|
|
resolvers ++= Seq("Akka Repository" at "http://repo.akka.io/releases/"),
|
|
|
|
|
2012-10-13 18:55:39 -04:00
|
|
|
// For Sonatype publishing
|
2012-10-05 23:59:31 -04:00
|
|
|
resolvers ++= Seq("sonatype-snapshots" at "https://oss.sonatype.org/content/repositories/snapshots",
|
|
|
|
"sonatype-staging" at "https://oss.sonatype.org/service/local/staging/deploy/maven2/"),
|
|
|
|
|
|
|
|
publishMavenStyle := true,
|
|
|
|
|
2012-10-14 20:36:20 -04:00
|
|
|
//useGpg in Global := true,
|
2012-10-05 23:59:31 -04:00
|
|
|
|
|
|
|
pomExtra := (
|
|
|
|
<url>http://spark-project.org/</url>
|
|
|
|
<licenses>
|
2012-10-10 21:54:22 -04:00
|
|
|
<license>
|
|
|
|
<name>BSD License</name>
|
|
|
|
<url>https://github.com/mesos/spark/blob/master/LICENSE</url>
|
|
|
|
<distribution>repo</distribution>
|
|
|
|
</license>
|
2012-10-05 23:59:31 -04:00
|
|
|
</licenses>
|
|
|
|
<scm>
|
2012-10-10 21:54:22 -04:00
|
|
|
<connection>scm:git:git@github.com:mesos/spark.git</connection>
|
|
|
|
<url>scm:git:git@github.com:mesos/spark.git</url>
|
2012-10-05 23:59:31 -04:00
|
|
|
</scm>
|
|
|
|
<developers>
|
2012-10-10 21:54:22 -04:00
|
|
|
<developer>
|
|
|
|
<id>matei</id>
|
|
|
|
<name>Matei Zaharia</name>
|
|
|
|
<email>matei.zaharia@gmail.com</email>
|
|
|
|
<url>http://www.cs.berkeley.edu/~matei</url>
|
|
|
|
<organization>U.C. Berkeley Computer Science</organization>
|
|
|
|
<organizationUrl>http://www.cs.berkeley.edu/</organizationUrl>
|
|
|
|
</developer>
|
2012-10-05 23:59:31 -04:00
|
|
|
</developers>
|
|
|
|
),
|
2012-10-13 18:55:39 -04:00
|
|
|
|
2012-10-14 20:36:20 -04:00
|
|
|
/*
|
2012-10-05 23:59:31 -04:00
|
|
|
publishTo <<= version { (v: String) =>
|
|
|
|
val nexus = "https://oss.sonatype.org/"
|
2012-10-13 18:55:39 -04:00
|
|
|
if (v.trim.endsWith("SNAPSHOT"))
|
|
|
|
Some("sonatype-snapshots" at nexus + "content/repositories/snapshots")
|
2012-10-05 23:59:31 -04:00
|
|
|
else
|
2012-10-10 21:54:22 -04:00
|
|
|
Some("sonatype-staging" at nexus + "service/local/staging/deploy/maven2")
|
2012-10-05 23:59:31 -04:00
|
|
|
},
|
|
|
|
|
2012-10-14 20:36:20 -04:00
|
|
|
*/
|
2012-10-05 23:59:31 -04:00
|
|
|
|
2011-07-14 22:38:25 -04:00
|
|
|
libraryDependencies ++= Seq(
|
2013-04-16 20:24:43 -04:00
|
|
|
"io.netty" % "netty" % "3.5.3.Final",
|
2013-04-23 23:27:25 -04:00
|
|
|
"org.eclipse.jetty" % "jetty-server" % "7.6.8.v20121106",
|
|
|
|
"org.scalatest" %% "scalatest" % "1.9.1" % "test",
|
|
|
|
"org.scalacheck" %% "scalacheck" % "1.10.0" % "test",
|
|
|
|
"com.novocode" % "junit-interface" % "0.9" % "test",
|
2013-01-29 21:54:58 -05:00
|
|
|
"org.easymock" % "easymock" % "3.1" % "test"
|
2011-09-26 19:04:59 -04:00
|
|
|
),
|
|
|
|
/* Workaround for issue #206 (fixed after SBT 0.11.0) */
|
|
|
|
watchTransitiveSources <<= Defaults.inDependencies[Task[Seq[File]]](watchSources.task,
|
2012-10-01 03:17:13 -04:00
|
|
|
const(std.TaskExtra.constant(Nil)), aggregate = true, includeRoot = true) apply { _.join.map(_.flatten) },
|
|
|
|
|
|
|
|
otherResolvers := Seq(Resolver.file("dotM2", file(Path.userHome + "/.m2/repository"))),
|
|
|
|
publishLocalConfiguration in MavenCompile <<= (packagedArtifacts, deliverLocal, ivyLoggingLevel) map {
|
|
|
|
(arts, _, level) => new PublishConfiguration(None, "dotM2", arts, Seq(), level)
|
|
|
|
},
|
|
|
|
publishMavenStyle in MavenCompile := true,
|
|
|
|
publishLocal in MavenCompile <<= publishTask(publishLocalConfiguration in MavenCompile, deliverLocal),
|
|
|
|
publishLocalBoth <<= Seq(publishLocal in MavenCompile, publishLocal).dependOn
|
2013-06-20 12:44:46 -04:00
|
|
|
) ++ net.virtualvoid.sbt.graph.Plugin.graphSettings
|
2011-07-14 22:38:25 -04:00
|
|
|
|
2013-06-20 12:44:46 -04:00
|
|
|
val slf4jVersion = "1.7.2"
|
2011-07-14 22:38:25 -04:00
|
|
|
|
2013-04-25 22:52:12 -04:00
|
|
|
val excludeJackson = ExclusionRule(organization = "org.codehaus.jackson")
|
|
|
|
val excludeNetty = ExclusionRule(organization = "org.jboss.netty")
|
2013-06-20 12:44:46 -04:00
|
|
|
val excludeAsm = ExclusionRule(organization = "asm")
|
2013-07-30 20:24:45 -04:00
|
|
|
val excludeSnappy = ExclusionRule(organization = "org.xerial.snappy")
|
2011-07-14 22:38:25 -04:00
|
|
|
|
2011-09-26 17:41:07 -04:00
|
|
|
def coreSettings = sharedSettings ++ Seq(
|
|
|
|
name := "spark-core",
|
2011-12-15 07:21:14 -05:00
|
|
|
resolvers ++= Seq(
|
2012-03-17 15:31:34 -04:00
|
|
|
"JBoss Repository" at "http://repository.jboss.org/nexus/content/repositories/releases/",
|
2012-10-02 15:02:00 -04:00
|
|
|
"Spray Repository" at "http://repo.spray.cc/",
|
2013-06-29 18:37:27 -04:00
|
|
|
"Cloudera Repository" at "https://repository.cloudera.com/artifactory/cloudera-repos/"
|
2011-12-15 07:21:14 -05:00
|
|
|
),
|
2012-10-05 23:59:31 -04:00
|
|
|
|
2011-09-26 17:41:07 -04:00
|
|
|
libraryDependencies ++= Seq(
|
2013-07-03 05:43:37 -04:00
|
|
|
"com.google.guava" % "guava" % "14.0.1",
|
2013-07-13 16:56:23 -04:00
|
|
|
"com.google.code.findbugs" % "jsr305" % "1.3.9",
|
2011-09-26 17:41:07 -04:00
|
|
|
"log4j" % "log4j" % "1.2.16",
|
|
|
|
"org.slf4j" % "slf4j-api" % slf4jVersion,
|
|
|
|
"org.slf4j" % "slf4j-log4j12" % slf4jVersion,
|
2013-04-16 20:24:43 -04:00
|
|
|
"commons-daemon" % "commons-daemon" % "1.0.10",
|
2011-09-26 17:41:07 -04:00
|
|
|
"com.ning" % "compress-lzf" % "0.8.4",
|
2013-07-30 19:04:18 -04:00
|
|
|
"org.xerial.snappy" % "snappy-java" % "1.0.5",
|
2013-06-19 07:34:30 -04:00
|
|
|
"org.ow2.asm" % "asm" % "4.0",
|
2012-03-30 11:38:49 -04:00
|
|
|
"com.google.protobuf" % "protobuf-java" % "2.4.1",
|
2013-07-16 06:38:46 -04:00
|
|
|
"com.typesafe.akka" % "akka-actor" % "2.0.5" excludeAll(excludeNetty),
|
|
|
|
"com.typesafe.akka" % "akka-remote" % "2.0.5" excludeAll(excludeNetty),
|
|
|
|
"com.typesafe.akka" % "akka-slf4j" % "2.0.5" excludeAll(excludeNetty),
|
2012-06-07 03:25:47 -04:00
|
|
|
"it.unimi.dsi" % "fastutil" % "6.4.4",
|
2012-06-30 17:45:55 -04:00
|
|
|
"colt" % "colt" % "1.2.0",
|
2013-08-13 21:50:20 -04:00
|
|
|
"org.apache.mesos" % "mesos" % "0.12.1",
|
2013-05-15 03:31:52 -04:00
|
|
|
"io.netty" % "netty-all" % "4.0.0.Beta2",
|
2013-07-02 01:48:09 -04:00
|
|
|
"org.apache.derby" % "derby" % "10.4.2.0" % "test",
|
2013-06-27 22:25:48 -04:00
|
|
|
"com.codahale.metrics" % "metrics-core" % "3.0.0",
|
2013-07-24 23:43:57 -04:00
|
|
|
"com.codahale.metrics" % "metrics-jvm" % "3.0.0",
|
2013-08-06 04:19:37 -04:00
|
|
|
"com.codahale.metrics" % "metrics-json" % "3.0.0",
|
2013-08-08 16:30:27 -04:00
|
|
|
"com.twitter" % "chill_2.9.3" % "0.3.1",
|
|
|
|
"com.twitter" % "chill-java" % "0.3.1"
|
2013-04-07 08:17:38 -04:00
|
|
|
) ++ (
|
|
|
|
if (HADOOP_MAJOR_VERSION == "2") {
|
|
|
|
if (HADOOP_YARN) {
|
|
|
|
Seq(
|
2013-04-23 23:27:25 -04:00
|
|
|
// Exclude rule required for all ?
|
2013-07-18 14:29:46 -04:00
|
|
|
"org.apache.hadoop" % "hadoop-client" % HADOOP_VERSION excludeAll(excludeJackson, excludeNetty, excludeAsm),
|
|
|
|
"org.apache.hadoop" % "hadoop-yarn-api" % HADOOP_VERSION excludeAll(excludeJackson, excludeNetty, excludeAsm),
|
|
|
|
"org.apache.hadoop" % "hadoop-yarn-common" % HADOOP_VERSION excludeAll(excludeJackson, excludeNetty, excludeAsm),
|
|
|
|
"org.apache.hadoop" % "hadoop-yarn-client" % HADOOP_VERSION excludeAll(excludeJackson, excludeNetty, excludeAsm)
|
2013-04-07 08:17:38 -04:00
|
|
|
)
|
|
|
|
} else {
|
|
|
|
Seq(
|
2013-07-19 12:37:24 -04:00
|
|
|
"org.apache.hadoop" % "hadoop-core" % HADOOP_VERSION excludeAll(excludeJackson, excludeNetty, excludeAsm),
|
|
|
|
"org.apache.hadoop" % "hadoop-client" % HADOOP_VERSION excludeAll(excludeJackson, excludeNetty, excludeAsm)
|
2013-04-07 08:17:38 -04:00
|
|
|
)
|
|
|
|
}
|
|
|
|
} else {
|
2013-04-25 22:52:12 -04:00
|
|
|
Seq("org.apache.hadoop" % "hadoop-core" % HADOOP_VERSION excludeAll(excludeJackson, excludeNetty) )
|
2013-04-07 08:17:38 -04:00
|
|
|
}),
|
|
|
|
unmanagedSourceDirectories in Compile <+= baseDirectory{ _ /
|
2013-04-21 22:31:13 -04:00
|
|
|
( if (HADOOP_YARN && HADOOP_MAJOR_VERSION == "2") {
|
|
|
|
"src/hadoop2-yarn/scala"
|
|
|
|
} else {
|
|
|
|
"src/hadoop" + HADOOP_MAJOR_VERSION + "/scala"
|
|
|
|
} )
|
2013-04-07 08:17:38 -04:00
|
|
|
}
|
2013-06-18 18:13:12 -04:00
|
|
|
) ++ assemblySettings ++ extraAssemblySettings
|
2011-09-26 17:41:07 -04:00
|
|
|
|
2012-10-05 23:59:31 -04:00
|
|
|
def rootSettings = sharedSettings ++ Seq(
|
|
|
|
publish := {}
|
|
|
|
)
|
|
|
|
|
2011-09-26 17:41:07 -04:00
|
|
|
def replSettings = sharedSettings ++ Seq(
|
|
|
|
name := "spark-repl",
|
|
|
|
libraryDependencies <+= scalaVersion("org.scala-lang" % "scala-compiler" % _)
|
2013-07-13 22:10:00 -04:00
|
|
|
) ++ assemblySettings ++ extraAssemblySettings
|
2011-09-26 17:41:07 -04:00
|
|
|
|
|
|
|
def examplesSettings = sharedSettings ++ Seq(
|
2013-01-20 22:22:24 -05:00
|
|
|
name := "spark-examples",
|
2013-05-09 19:33:38 -04:00
|
|
|
libraryDependencies ++= Seq(
|
|
|
|
"com.twitter" % "algebird-core_2.9.2" % "0.1.11",
|
2013-06-18 08:55:31 -04:00
|
|
|
|
2013-08-09 15:45:18 -04:00
|
|
|
"org.apache.hbase" % "hbase" % HBASE_VERSION excludeAll(excludeNetty, excludeAsm),
|
2013-06-18 08:55:31 -04:00
|
|
|
|
|
|
|
"org.apache.cassandra" % "cassandra-all" % "1.2.5"
|
|
|
|
exclude("com.google.guava", "guava")
|
|
|
|
exclude("com.googlecode.concurrentlinkedhashmap", "concurrentlinkedhashmap-lru")
|
|
|
|
exclude("com.ning","compress-lzf")
|
|
|
|
exclude("io.netty", "netty")
|
|
|
|
exclude("jline","jline")
|
|
|
|
exclude("log4j","log4j")
|
|
|
|
exclude("org.apache.cassandra.deps", "avro")
|
2013-07-30 20:24:45 -04:00
|
|
|
excludeAll(excludeSnappy)
|
2013-05-09 19:33:38 -04:00
|
|
|
)
|
2011-09-26 17:41:07 -04:00
|
|
|
)
|
|
|
|
|
2013-07-18 01:59:00 -04:00
|
|
|
def toolsSettings = sharedSettings ++ Seq(
|
|
|
|
name := "spark-tools"
|
|
|
|
)
|
|
|
|
|
2013-07-30 17:03:15 -04:00
|
|
|
def bagelSettings = sharedSettings ++ Seq(
|
|
|
|
name := "spark-bagel"
|
2013-07-30 21:31:11 -04:00
|
|
|
)
|
2012-06-22 18:03:09 -04:00
|
|
|
|
2013-07-05 14:38:53 -04:00
|
|
|
def mllibSettings = sharedSettings ++ Seq(
|
|
|
|
name := "spark-mllib",
|
2013-07-05 14:13:41 -04:00
|
|
|
libraryDependencies ++= Seq(
|
2013-06-21 09:58:01 -04:00
|
|
|
"org.jblas" % "jblas" % "1.2.3"
|
2013-07-05 14:13:41 -04:00
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2012-09-02 05:35:17 -04:00
|
|
|
def streamingSettings = sharedSettings ++ Seq(
|
2012-11-06 12:41:42 -05:00
|
|
|
name := "spark-streaming",
|
2013-03-11 14:37:29 -04:00
|
|
|
resolvers ++= Seq(
|
2013-03-13 13:40:42 -04:00
|
|
|
"Akka Repository" at "http://repo.akka.io/releases/"
|
2013-03-11 14:37:29 -04:00
|
|
|
),
|
2012-11-06 12:41:42 -05:00
|
|
|
libraryDependencies ++= Seq(
|
2013-07-30 20:24:45 -04:00
|
|
|
"org.apache.flume" % "flume-ng-sdk" % "1.2.0" % "compile" excludeAll(excludeNetty, excludeSnappy),
|
2013-06-20 12:44:46 -04:00
|
|
|
"com.github.sgroschupf" % "zkclient" % "0.1" excludeAll(excludeNetty),
|
2013-04-25 22:52:12 -04:00
|
|
|
"org.twitter4j" % "twitter4j-stream" % "3.0.3" excludeAll(excludeNetty),
|
2013-07-16 06:38:46 -04:00
|
|
|
"com.typesafe.akka" % "akka-zeromq" % "2.0.5" excludeAll(excludeNetty)
|
2013-01-20 22:22:24 -05:00
|
|
|
)
|
2012-09-02 05:35:17 -04:00
|
|
|
) ++ assemblySettings ++ extraAssemblySettings
|
2012-07-28 23:03:26 -04:00
|
|
|
|
2012-06-22 18:03:09 -04:00
|
|
|
def extraAssemblySettings() = Seq(test in assembly := {}) ++ Seq(
|
2012-10-01 03:17:13 -04:00
|
|
|
mergeStrategy in assembly := {
|
|
|
|
case m if m.toLowerCase.endsWith("manifest.mf") => MergeStrategy.discard
|
2013-06-25 22:08:19 -04:00
|
|
|
case m if m.toLowerCase.matches("meta-inf.*\\.sf$") => MergeStrategy.discard
|
2012-08-02 13:12:00 -04:00
|
|
|
case "reference.conf" => MergeStrategy.concat
|
2012-06-22 18:03:09 -04:00
|
|
|
case _ => MergeStrategy.first
|
|
|
|
}
|
2012-10-01 03:17:13 -04:00
|
|
|
)
|
2011-07-14 22:38:25 -04:00
|
|
|
}
|