sbt-assembly
sbt-assembly copied to clipboard
Cannot disable assembling jars for subprojects
Hey,
I can't figure out how to assemble a jar only for a root project that aggregates and depends on many projects. Whatever I try it always assembles jar for individual projects. I tried to add assembleArtifact := false to them but it doesn't help.
There is a SO question but the answer applies to older version before AutoPlugin.
That behavior may actually be a bug of auto pluginfied sbt-assembly. Could you try:
aggregate in assembly := false
and see if that fixes it?
Yup, this works, thank you
.settings( . . . ) .disablePlugins(AssemblyPlugin)
.settings( . . . ) .disablePlugins(AssemblyPlugin)
OMG, finally found this simple and important fix.