sbt-assembly icon indicating copy to clipboard operation
sbt-assembly copied to clipboard

Cannot disable assembling jars for subprojects

Open l15k4 opened this issue 10 years ago • 4 comments

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.

l15k4 avatar Feb 16 '15 23:02 l15k4

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?

eed3si9n avatar Feb 17 '15 00:02 eed3si9n

Yup, this works, thank you

l15k4 avatar Feb 17 '15 00:02 l15k4

.settings( . . . ) .disablePlugins(AssemblyPlugin)

ddjxie avatar Jun 26 '17 18:06 ddjxie

.settings( . . . ) .disablePlugins(AssemblyPlugin)

OMG, finally found this simple and important fix.

jkleckner avatar Jul 12 '24 03:07 jkleckner