Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

scala

sbt

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.

like image 920
user2947133 Avatar asked Jan 15 '15 07:01

user2947133


1 Answers

You can use sbt without its REPL:

$ sbt analysis/assembly
like image 170
dk14 Avatar answered Oct 29 '22 21:10

dk14