user2947133
user2947133

Reputation: 325

sbt-assembly: Create jar for a single project of a multi-project build

I have a multi-project build.sbt file. I would like to assemble the jar for just one of the projects. Currently, I do the following:

$ sbt

project analysis assembly ... exit

I would like to save a few steps and assemble the jar for the project "analysis" from the command line. Is there a way to do this?

Thanks.

Upvotes: 8

Views: 2168

Answers (1)

dk14
dk14

Reputation: 22374

You can use sbt without its REPL:

$ sbt analysis/assembly

Upvotes: 16

Related Questions