I want to refine sbt assembly/package operation by combine two step to one. The two step is:
$ sbt > project XXX .... > assembly Ctrl + c to exit
Besides, assembly
is a task form fat jar sbt plugin.
I have attempt with sbt project analysis assembly
but not works.A error encounter:
[error] Not a valid command: analysis (similar: alias) [error] Not a valid key: analysis (similar: readAnalysis, mainClass, less) [error] analysis [error] ^
How to achieve this?Thanks
clean Deletes all generated files (in the target directory). compile Compiles the main sources (in src/main/scala and src/main/java directories). test Compiles and runs all tests. console Starts the Scala interpreter with a classpath including the compiled sources and all dependencies.
Within the sbt shell, use ;
to chain commands:
;project XXX; assembly
Calling from the command line, enclose individual commands with quotes:
sbt "project XXX" assembly
or enclose a whole chain in quotes:
sbt ";project XXX; assembly"
To call a task in subproject XXX
from the context of another project in the shell:
XXX/assembly
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With