Hi Oscar,
The sbt-assembly's readme describes settings you can add to customize
the plugin.
If you see the [Applying the Plugin to a Project (Adding the assembly Task)][3],
it says
> full configuration:
>
> import sbtassembly.Plugin._
> import AssemblyKeys._
>
> lazy val sub = Project("sub", file("sub"),
> settings = buildSettings ++ assemblySettings ++
> Seq( // your settings here
> ))
Note the comment "// your settings here."
The exact way the settings are loaded doesn't matter, but it needs to
be passed into the project in one way or the other. Your mergeStrategy
isn't. Try something like:
lazy val root = Project(
"jz3dSamples",
file("."),
settings = commonSettings ++ Seq(
libraryDependencies ++= Seq(
"org.jzy3d" % "jzy3d" % "0.9" from
"
http://www.jzy3d.org/release/0.9a3/org.jzy3d-0.9.jar"
),
mergeStrategy in assembly := {
case _ => MergeStrategy.concat
}
) ++
addZipJar("org.jzy3d" % "jzy3d-deps" % "0.9" from
"
http://www.jzy3d.org/release/0.9a3/org.jzy3d-0.9-dependencies.zip",
Compile) ++
addZipJar("org.jzy3d" % "jzy3d-native" % "0.9" from
"
http://www.jzy3d.org/release/0.9a3/org.jzy3d-0.9-binaries-%s.zip".format(arch),
Compile)
)
Also, if multiple jars are bringing in class files, the strategy I'd
use would be MergeStrategy.first, not concat, and would only override
the said package:
mergeStrategy in assembly <<= (mergeStrategy in assembly) { (old) =>
{
case x if x startsWith "org/eclipse/swt/browser/" => MergeStrategy.first
case x => old(x)
}
}
-eugene
[3]:
https://github.com/sbt/sbt-assembly#applying-the-plugin-to-a-project-adding-the-assembly-task
> --
> You received this message because you are subscribed to the Google Groups
> "simple-build-tool" group.
> To view this discussion on the web visit
>
https://groups.google.com/d/msg/simple-build-tool/-/o0MvF2T9uykJ.
> To post to this group, send email to
simple-b...@googlegroups.com.
> To unsubscribe from this group, send email to
>
simple-build-t...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/simple-build-tool?hl=en.