Order matters. If you say:
Seq(
x := 3,
x := 5
)
the second one will override the first and x will be 5.
The project/build.scala listed above does the equivalent of:
Seq(jarName in Assembly := "mycustomjarname.jar") ++
sbtassembly.Plugin.assemblySettings
Because sbtassembly.Plugin.assemblySettings defines jarName, its jarName overrides yours instead of the other way around. So, make your Project definition look like:
lazy val subProject1= Project (
"subProject1",
file ("subProject1"),
settings = buildSettings ++
sbtassembly.Plugin.assemblySettings ++
Seq (libraryDependencies) ++
assemblySettings
)
So, put your customizations last and the defaults first. Also, you don't need to redefine Assembly and jarName. You can import them like normal Scala identifiers:
import sbtassembly.Plugin.{Assembly, jarName}
-Mark
>
> Thanks!
>